bill 1 週間 前
コミット
5b6f9a4b80
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++}`;