diff --git a/Yi.Ai.Vue3/package.json b/Yi.Ai.Vue3/package.json index a14ffb4c..c7700039 100644 --- a/Yi.Ai.Vue3/package.json +++ b/Yi.Ai.Vue3/package.json @@ -37,6 +37,7 @@ "@jsonlee_12138/enum": "^1.0.4", "@vueuse/core": "^13.5.0", "@vueuse/integrations": "^13.5.0", + "driver.js": "^1.3.6", "element-plus": "^2.10.4", "fingerprintjs": "^0.5.3", "hook-fetch": "^2.0.4-beta.1", @@ -67,7 +68,7 @@ "postcss-html": "1.5.0", "prettier": "^3.6.2", "sass-embedded": "^1.89.2", - "stylelint": "^16.21.2", + "stylelint": "^16.21.1", "stylelint-config-html": "^1.1.0", "stylelint-config-recess-order": "^7.1.0", "stylelint-config-recommended-scss": "^15.0.1", diff --git a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue index d64b6347..6e50f1a8 100644 --- a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue +++ b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue @@ -188,9 +188,14 @@ async function startSSE(chatContent: string) { ? `${item.content.substring(0, 2000)}...(内容过长,已省略)` : item.content, })), - sessionId: route.params?.id !== 'not_login' ? String(route.params?.id) : undefined, + // sessionId: route.params?.id !== 'not_login' ? String(route.params?.id) : undefined, + // userId: userStore.userInfo?.userId, + // model: modelStore.currentModelInfo.modelId ?? '', + + sessionId: route.query?.sessionId !== 'not_login' ? String(route.query?.sessionId) : undefined, // 修改点:sessionId 从 query 参数中获取 userId: userStore.userInfo?.userId, - model: modelStore.currentModelInfo.modelId ?? '', + model: modelStore.currentModelInfo.modelId ?? '', // 修改点:modelId 改为 model + })) { handleDataChunk(chunk.result as AnyObject); } diff --git a/Yi.Ai.Vue3/types/import_meta.d.ts b/Yi.Ai.Vue3/types/import_meta.d.ts index d8a60d41..b3e9d275 100644 --- a/Yi.Ai.Vue3/types/import_meta.d.ts +++ b/Yi.Ai.Vue3/types/import_meta.d.ts @@ -6,7 +6,6 @@ interface ImportMetaEnv { readonly VITE_WEB_ENV: string; readonly VITE_WEB_BASE_API: string; readonly VITE_API_URL: string; - readonly VITE_BUILD_COMPRESS: string; readonly VITE_SSO_SEVER_URL: string; readonly VITE_APP_VERSION: string; }