From 4636926fd8f76d98fc0ba98fe16179f74b1e7343 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:42:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DallowEdit=E4=B8=BAfals?= =?UTF-8?q?e=E6=97=B6=E4=BB=8D=E7=84=B6=E5=85=81=E8=AE=B8=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E8=B6=85=E9=93=BE=E6=8E=A5=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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/handler.js b/src/controllers/handler.js index fadf2e7..c6bb6b6 100644 --- a/src/controllers/handler.js +++ b/src/controllers/handler.js @@ -4893,6 +4893,11 @@ export default function luckysheetHandler() { //菜单栏 插入链接按钮 $("#luckysheet-insertLink-btn-title").click(function () { + // *如果禁止前台编辑,则中止下一步操作 + if (!checkIsAllowEdit()) { + tooltip.info("", locale().pivotTable.errorNotAllowEdit); + return + } if(!checkProtectionNotEnable(Store.currentSheetIndex)){ return; }