Browse Source

公式不刷新的问题

xujunjie 1 năm trước cách đây
mục cha
commit
4a75481f16
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/pages/Detail/LuckySheet.js

+ 2 - 0
src/pages/Detail/LuckySheet.js

@@ -270,7 +270,9 @@ class LuckySheet extends React.Component {
     // 所以默认设置第一个单元格的背景色
     setTimeout(() => {
       this.luckysheet.setCellFormat(0, 0, 'bg', '#fff');
+      this.luckysheet.refreshFormula();
     }, 500);
+    
   }
 
   // componentDidUpdate(prevProps) {