From ff45f9147757be656c04ac33a4bdc13ff486ca9c Mon Sep 17 00:00:00 2001 From: renxxing <74659302+renxxing@users.noreply.github.com> Date: Thu, 10 Dec 2020 10:03:57 +0800 Subject: [PATCH] repair repair --- src/controllers/sheetBar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/sheetBar.js b/src/controllers/sheetBar.js index 10673a8..33d6532 100644 --- a/src/controllers/sheetBar.js +++ b/src/controllers/sheetBar.js @@ -71,7 +71,7 @@ function showsheetconfigmenu() { redo["oldcolor"] = oldcolor; redo["color"] = color; - Store.jfundo = []; + Store.jfundo.length = 0; Store.jfredo.push(redo); } } @@ -96,7 +96,7 @@ function showsheetconfigmenu() { redo["oldcolor"] = oldcolor; redo["color"] = null; - Store.jfundo = []; + Store.jfundo.length = 0; Store.jfredo.push(redo); } }); @@ -311,7 +311,7 @@ export function initialSheetBar(){ redo["oldtxt"] = oldtxt; redo["txt"] = txt; - Store.jfundo = []; + Store.jfundo.length = 0; Store.jfredo.push(redo); } }); @@ -506,4 +506,4 @@ export function initialSheetBar(){ $("#luckysheet-input-box").removeAttr("style"); }); -} \ No newline at end of file +}