From 6189e00f040c4a085618726981e3e3044b960d86 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Thu, 10 Mar 2022 10:28:11 +0800 Subject: [PATCH] opt some --- plugin/story/json.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/story/json.js b/plugin/story/json.js index ff154d24..fbcfb520 100644 --- a/plugin/story/json.js +++ b/plugin/story/json.js @@ -8,8 +8,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, switch (typeof data) { case lang.OBJECT: if (data == null) { - return can.page.Append(can, list, [{text: "null"}]).item - return + list = can.page.Append(can, target, [{text: "null"}]).item + break } function wrap(begin, end, add, cb) { can.page.Append(can, target, [{text: begin}])