fix: 对话参数修改

This commit is contained in:
Gsh
2025-07-18 19:49:11 +08:00
parent 10f7499066
commit 3ce9fc9790
3 changed files with 9 additions and 4 deletions

View File

@@ -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",

View File

@@ -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);
}

View File

@@ -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;
}