From 98a16d2b18e0565f1108dbd96e6e15f7d22fa1df Mon Sep 17 00:00:00 2001 From: break-wave <654896146@qq.com> Date: Tue, 11 May 2021 16:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(bug):=20=E9=85=8D=E7=BD=AE=E4=BA=86showtool?= =?UTF-8?q?barConfig.undoRedo=E8=BF=9B=E8=A1=8C=E9=9A=90=E8=97=8F=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/resize.js | 2 +- src/controllers/toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/resize.js b/src/controllers/resize.js index 4f9b4b1..723811e 100644 --- a/src/controllers/resize.js +++ b/src/controllers/resize.js @@ -392,7 +392,7 @@ export function menuToolBarWidth() { if (JSON.stringify(showtoolbarConfig) !== '{}') { if(showtoolbarConfig.hasOwnProperty('undoRedo')){ config.undo = config.redo = showtoolbarConfig.undoRedo; - delete showtoolbarConfig.undoRedo; + // delete showtoolbarConfig.undoRedo; } Object.assign(config, showtoolbarConfig); diff --git a/src/controllers/toolbar.js b/src/controllers/toolbar.js index edbd095..13f4555 100644 --- a/src/controllers/toolbar.js +++ b/src/controllers/toolbar.js @@ -876,7 +876,7 @@ export function createToolbarHtml() { if (JSON.stringify(showtoolbarConfig) !== '{}') { if(showtoolbarConfig.hasOwnProperty('undoRedo')){ config.undo = config.redo = showtoolbarConfig.undoRedo; - delete showtoolbarConfig.undoRedo; + // delete showtoolbarConfig.undoRedo; } Object.assign(config, showtoolbarConfig); }