From b94f768d748671377599c71ca0787670ff654782 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 3 Jun 2020 10:52:49 +0800 Subject: [PATCH] fix time --- plugin/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/inner.js b/plugin/inner.js index ba114800..8a883a90 100644 --- a/plugin/inner.js +++ b/plugin/inner.js @@ -11,7 +11,7 @@ Volcanos("onimport", {help: "导入数据", _init: function(can, msg, list, cb, can.page.Modify(can, target, {style: {"max-height": height-160+"px"}}) - if (msg.key && msg.key.length != msg.time.length) { + if (msg.key && msg.time && msg.key.length != msg.time.length) { msg.key && (msg.key = msg.key.slice(2)) } msg.Option("_action") != "查看" && msg.Option("_action") != "打开" && can.onappend.table(can, target, "table", msg) @@ -389,7 +389,7 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert" can.display = p && p.profile && can.ui.profile || can.ui.display var msg = can.request(event); msg.Option("content", can.onexport.content(can)) can.run(event, arg||["action", key, can.Option("path"), can.Option("name")], function(msg) { - if (msg.key && msg.key.length != msg.time.length) { + if (msg.key && msg.time && msg.key.length != msg.time.length) { msg.key && (msg.key = msg.key.slice(2)) } can.page.Modify(can, can.display, {innerHTML: "", style: {display: "block"}})