浏览代码

fixup: fix type errors

Yidadaa 1 年之前
父节点
当前提交
c73a91a0f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/store/chat.ts

+ 1 - 1
app/store/chat.ts

@@ -195,7 +195,7 @@ export const useChatStore = createPersistStore(
         });
       },
 
-      newSession(mask: Mask) {
+      newSession(mask?: Mask) {
         const session = createEmptySession();
 
         if (mask) {