From 76194a38c040e8fe30343377dbaead97b5ef3114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=9C=E7=8C=AB=E5=AD=90neko?= <815743831@qq.com> Date: Fri, 19 Nov 2021 15:10:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3allowEdit=E4=B8=BAfals?= =?UTF-8?q?e=E6=97=B6=E5=85=81=E8=AE=B8=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/handler.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/handler.js b/src/controllers/handler.js index 770df04..fadf2e7 100644 --- a/src/controllers/handler.js +++ b/src/controllers/handler.js @@ -45,7 +45,7 @@ import { mouseposition } from '../global/location'; import { rowlenByRange } from '../global/getRowlen'; -import { isRealNull, hasPartMC, isEditMode } from '../global/validate'; +import { isRealNull, hasPartMC, isEditMode, checkIsAllowEdit } from '../global/validate'; import { countfunc } from '../global/count'; import browser from '../global/browser'; import formula from '../global/formula'; @@ -4863,6 +4863,11 @@ export default function luckysheetHandler() { //菜单栏 插入图片按钮 $("#luckysheet-insertImg-btn-title").click(function () { + // *如果禁止前台编辑,则中止下一步操作 + if (!checkIsAllowEdit()) { + tooltip.info("", locale().pivotTable.errorNotAllowEdit); + return + } if(!checkProtectionAuthorityNormal(Store.currentSheetIndex, "editObjects")){ return; }