Browse Source

设置公式刷新时机

xujunjie 1 year ago
parent
commit
1fb2c85430
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/pages/Detail/LuckySheet.js

+ 3 - 1
src/pages/Detail/LuckySheet.js

@@ -140,7 +140,9 @@ class LuckySheet extends React.Component {
           }, 100);
           }, 100);
         },
         },
         workbookCreateAfter: options => {
         workbookCreateAfter: options => {
-          this.luckysheet.refreshFormula();
+          setTimeout(() => {
+            this.luckysheet.refreshFormula();
+          }, 800);
         },
         },
       },
       },
     };
     };