From 48192adbd294f0e7dd18f7960ad3f32c91c2cff8 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Wed, 29 Sep 2021 10:58:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(rowColumnOperation):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=E6=B8=85=E9=99=A4=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E8=B6=85=E9=93=BE=E6=8E=A5=E4=BE=9D=E7=84=B6?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/rowColumnOperation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/rowColumnOperation.js b/src/controllers/rowColumnOperation.js index 9e624d5..d881ae4 100644 --- a/src/controllers/rowColumnOperation.js +++ b/src/controllers/rowColumnOperation.js @@ -2047,6 +2047,7 @@ export function rowColumnOperationInitial(){ return; } + const hyperlinkMap = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].hyperlink; for(let s = 0; s < Store.luckysheet_select_save.length; s++){ let r1 = Store.luckysheet_select_save[s].row[0], @@ -2078,6 +2079,10 @@ export function rowColumnOperationInitial(){ else{ d[r][c] = null; } + // 同步清除 hyperlink + if (hyperlinkMap && hyperlinkMap[`${r}_${c}`]) { + delete hyperlinkMap[`${r}_${c}`]; + } } } }