From 544dfa8c7d7390b65713c128e6fdbd87668f601c Mon Sep 17 00:00:00 2001 From: "CN\\wuwx26" Date: Tue, 3 Nov 2020 20:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A1=A8=E6=A0=BCindex?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E4=BA=86=EF=BC=8CcalcChain=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E9=93=BE=E9=87=8C=E7=9A=84index=E4=B9=9F=E8=A6=81=E8=B7=9F?= =?UTF-8?q?=E7=9D=80=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/global/api.js b/src/global/api.js index 32129cc..a9b9cc8 100644 --- a/src/global/api.js +++ b/src/global/api.js @@ -4412,7 +4412,12 @@ export function setSheetAdd(options = {}) { order = Number(order); let index = sheetmanage.generateRandomSheetIndex(); - + // calcChain公式链里的index也要跟着变化 + if (sheetObject.calcChain.length > 0) { + sheetObject.calcChain.forEach((item) => { + item.index = index + }) + } let sheetname = sheetmanage.generateRandomSheetName(Store.luckysheetfile, false); if(!!sheetObject.name){ let sameName = false;