diff --git a/ui/env.d.ts b/ui/env.d.ts
index de80aae90..401e8d4fd 100644
--- a/ui/env.d.ts
+++ b/ui/env.d.ts
@@ -1,4 +1,5 @@
///
+declare module 'katex'
interface Window {
sendMessage: ?((message: string, other_params_data: any) => void)
MaxKB: {
diff --git a/ui/package.json b/ui/package.json
index 465a8cf9f..e921cb1a6 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -31,8 +31,8 @@
"echarts": "^5.6.0",
"element-plus": "^2.9.10",
"file-saver": "^2.0.5",
+ "katex": "^0.16.10",
"highlight.js": "^11.11.1",
- "katex": "^0.16.22",
"md-editor-v3": "^5.6.1",
"mermaid": "^11.6.0",
"moment": "^2.30.1",
@@ -54,6 +54,7 @@
},
"devDependencies": {
"@tsconfig/node22": "^22.0.1",
+ "@types/file-saver": "^2.0.7",
"@types/node": "^22.14.0",
"@types/nprogress": "^0.2.3",
"@vitejs/plugin-vue": "^5.2.3",
diff --git a/ui/src/api/application/application.ts b/ui/src/api/application/application.ts
index 44c306f15..6fdb944b0 100644
--- a/ui/src/api/application/application.ts
+++ b/ui/src/api/application/application.ts
@@ -262,7 +262,7 @@ const playDemoText: (application_id: string, data: any, loading?: Ref)
/**
* 文本转语音
*/
-const textToSpeech: (
+const postTextToSpeech: (
application_id: String,
data: any,
loading?: Ref,
@@ -318,7 +318,7 @@ export default {
publish,
updatePlatformConfig,
playDemoText,
- textToSpeech,
+ postTextToSpeech,
speechToText,
getMcpTools,
}
diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
index 2a2039462..b88162060 100644
--- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue
+++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
@@ -704,7 +704,7 @@ const getSpeechToTextAPI = () => {
return chatAPI.speechToText(data, loading)
}
} else {
- return applicationApi.textToSpeech
+ return applicationApi.postTextToSpeech
}
}
const speechToTextAPI = getSpeechToTextAPI()
diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue
index a36c2664e..ed5f20efa 100644
--- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue
+++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue
@@ -268,7 +268,7 @@ const getTextToSpeechAPI = () => {
return chatAPI.textToSpeech(data, loading)
}
} else {
- return applicationApi.textToSpeech
+ return applicationApi.postTextToSpeech
}
}
const textToSpeechAPI = getTextToSpeechAPI()
diff --git a/ui/src/layout/layout-template/MainLayout.vue b/ui/src/layout/layout-template/MainLayout.vue
index 6fa6bd1dd..ed5dbb12c 100644
--- a/ui/src/layout/layout-template/MainLayout.vue
+++ b/ui/src/layout/layout-template/MainLayout.vue
@@ -28,7 +28,7 @@ const {
} = route as any
const isShared = computed(() => {
- return folderId === 'shared' || route.name?.includes('ResourceManagement')
+ return folderId === 'shared'
})
const { theme } = useStore()
const isDefaultTheme = computed(() => {
diff --git a/ui/src/views/application-overview/component/EditAvatarDialog.vue b/ui/src/views/application-overview/component/EditAvatarDialog.vue
index b52c998c0..a635a9fed 100644
--- a/ui/src/views/application-overview/component/EditAvatarDialog.vue
+++ b/ui/src/views/application-overview/component/EditAvatarDialog.vue
@@ -122,11 +122,12 @@ function submit() {
} else if (radioType.value === 'custom' && iconFile.value) {
const fd = new FormData()
fd.append('file', iconFile.value.raw)
- overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
- emit('refresh')
- MsgSuccess(t('common.saveSuccess'))
- dialogVisible.value = false
- })
+ // todo
+ // overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
+ // emit('refresh')
+ // MsgSuccess(t('common.saveSuccess'))
+ // dialogVisible.value = false
+ // })
} else {
MsgError(t('common.EditAvatarDialog.uploadImagePrompt'))
}
diff --git a/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue b/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
index 717b77308..0c989285a 100644
--- a/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
+++ b/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
@@ -176,7 +176,7 @@ watch(dialogVisible, (bool) => {
}
})
watch(
- () => form.authentication,
+ () => form.value.authentication,
(b) => {
if (b) {
applicationApi.getChatUserAuthType().then((ok) => {
diff --git a/ui/src/views/chat/auth/component/password.vue b/ui/src/views/chat/auth/component/password.vue
index b7a4db25d..151698777 100644
--- a/ui/src/views/chat/auth/component/password.vue
+++ b/ui/src/views/chat/auth/component/password.vue
@@ -10,19 +10,15 @@