Browse Source

fix(rowColumnOperation): 修复单元格清除内容后,超链接依然存在的bug

master
cdswyda 4 years ago
parent
commit
48192adbd2
  1. 5
      src/controllers/rowColumnOperation.js

5
src/controllers/rowColumnOperation.js

@ -2047,6 +2047,7 @@ export function rowColumnOperationInitial(){
return; return;
} }
const hyperlinkMap = Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].hyperlink;
for(let s = 0; s < Store.luckysheet_select_save.length; s++){ for(let s = 0; s < Store.luckysheet_select_save.length; s++){
let r1 = Store.luckysheet_select_save[s].row[0], let r1 = Store.luckysheet_select_save[s].row[0],
@ -2078,6 +2079,10 @@ export function rowColumnOperationInitial(){
else{ else{
d[r][c] = null; d[r][c] = null;
} }
// 同步清除 hyperlink
if (hyperlinkMap && hyperlinkMap[`${r}_${c}`]) {
delete hyperlinkMap[`${r}_${c}`];
}
} }
} }
} }

Loading…
Cancel
Save