Browse Source

监测表sheet的变化

zhou1577692533 1 week ago
parent
commit
02d3e01c6e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/App.tsx

+ 1 - 1
src/components/App.tsx

@@ -194,7 +194,7 @@ function App() {
     });
     });
 
 
     if (typeof Dingdocs !== 'undefined' && Dingdocs?.base?.event?.onSelectionChanged) {
     if (typeof Dingdocs !== 'undefined' && Dingdocs?.base?.event?.onSelectionChanged) {
-      let currentSheetId = null;
+      let currentSheetId: string | null = null;
       Dingdocs.base.event.onSelectionChanged((event: any) => {
       Dingdocs.base.event.onSelectionChanged((event: any) => {
         if (event.sheetId !== currentSheetId) {
         if (event.sheetId !== currentSheetId) {
           currentSheetId = event.sheetId;
           currentSheetId = event.sheetId;