2 次代碼提交 79c03f41eb ... 4c88001c19

作者 SHA1 備註 提交日期
  bill 4c88001c19 Merge branch 'v2.0.0-ga' of http://192.168.0.115:3000/bill/fuse-code into v2.0.0-ga 1 周之前
  bill 5b6f9a4b80 fix: 1 1 周之前
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/store/sys.ts

+ 1 - 1
src/store/sys.ts

@@ -41,7 +41,7 @@ watchEffect(() => (document.title = title.value));
 
 let currentTempIndex = 0;
 export const isTemploraryID = (id: string) =>
-  id.includes("__currentTempIndex__");
+  typeof id === 'string' && id.includes("__currentTempIndex__");
 export const createTemploraryID = () =>
   `__currentTempIndex__${currentTempIndex++}`;