Skip to content

Commit 1f8cffb

Browse files
fix: build
1 parent 10eac10 commit 1f8cffb

File tree

11 files changed

+21
-22
lines changed

11 files changed

+21
-22
lines changed

ui/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference types="vite/client" />
2+
declare module 'katex'
23
interface Window {
34
sendMessage: ?((message: string, other_params_data: any) => void)
45
MaxKB: {

ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"echarts": "^5.6.0",
3232
"element-plus": "^2.9.10",
3333
"file-saver": "^2.0.5",
34+
"katex": "^0.16.10",
3435
"highlight.js": "^11.11.1",
35-
"katex": "^0.16.22",
3636
"md-editor-v3": "^5.6.1",
3737
"mermaid": "^11.6.0",
3838
"moment": "^2.30.1",
@@ -54,6 +54,7 @@
5454
},
5555
"devDependencies": {
5656
"@tsconfig/node22": "^22.0.1",
57+
"@types/file-saver": "^2.0.7",
5758
"@types/node": "^22.14.0",
5859
"@types/nprogress": "^0.2.3",
5960
"@vitejs/plugin-vue": "^5.2.3",

ui/src/api/application/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ const playDemoText: (application_id: string, data: any, loading?: Ref<boolean>)
262262
/**
263263
* 文本转语音
264264
*/
265-
const textToSpeech: (
265+
const postTextToSpeech: (
266266
application_id: String,
267267
data: any,
268268
loading?: Ref<boolean>,
@@ -318,7 +318,7 @@ export default {
318318
publish,
319319
updatePlatformConfig,
320320
playDemoText,
321-
textToSpeech,
321+
postTextToSpeech,
322322
speechToText,
323323
getMcpTools,
324324
}

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ const getSpeechToTextAPI = () => {
704704
return chatAPI.speechToText(data, loading)
705705
}
706706
} else {
707-
return applicationApi.textToSpeech
707+
return applicationApi.postTextToSpeech
708708
}
709709
}
710710
const speechToTextAPI = getSpeechToTextAPI()

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const getTextToSpeechAPI = () => {
268268
return chatAPI.textToSpeech(data, loading)
269269
}
270270
} else {
271-
return applicationApi.textToSpeech
271+
return applicationApi.postTextToSpeech
272272
}
273273
}
274274
const textToSpeechAPI = getTextToSpeechAPI()

ui/src/layout/layout-template/MainLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const {
2828
} = route as any
2929
3030
const isShared = computed(() => {
31-
return folderId === 'shared' || route.name?.includes('ResourceManagement')
31+
return folderId === 'shared'
3232
})
3333
const { theme } = useStore()
3434
const isDefaultTheme = computed(() => {

ui/src/views/application-overview/component/EditAvatarDialog.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ function submit() {
122122
} else if (radioType.value === 'custom' && iconFile.value) {
123123
const fd = new FormData()
124124
fd.append('file', iconFile.value.raw)
125-
overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
126-
emit('refresh')
127-
MsgSuccess(t('common.saveSuccess'))
128-
dialogVisible.value = false
129-
})
125+
// todo
126+
// overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
127+
// emit('refresh')
128+
// MsgSuccess(t('common.saveSuccess'))
129+
// dialogVisible.value = false
130+
// })
130131
} else {
131132
MsgError(t('common.EditAvatarDialog.uploadImagePrompt'))
132133
}

ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ watch(dialogVisible, (bool) => {
176176
}
177177
})
178178
watch(
179-
() => form.authentication,
179+
() => form.value.authentication,
180180
(b) => {
181181
if (b) {
182182
applicationApi.getChatUserAuthType().then((ok) => {

ui/src/views/chat/auth/component/password.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,15 @@
1010
</template>
1111
<script setup lang="ts">
1212
import { ref, computed } from 'vue'
13-
1413
import useStore from '@/stores'
1514
import { t } from '@/locales'
1615
import { useRoute, useRouter } from 'vue-router'
17-
const route = useRoute()
1816
const FormRef = ref()
1917
2018
const { chatUser } = useStore()
21-
const props = defineProps<{ applicationProfile: any; modelValue: boolean }>()
2219
const loading = ref<boolean>(false)
2320
const router = useRouter()
2421
25-
const emit = defineEmits(['update:modelValue'])
2622
const auth = () => {
2723
return chatUser.passwordAuthentication(form.value.password).then((ok) => {
2824
router.push({ name: 'chat', params: { accessToken: chatUser.accessToken } })

ui/src/views/chat/user-login/auth/password/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<el-form ref="FormRef" :model="form" @submit.prevent="validator">
4-
<el-form-item prop="value" :rules="rules.value">
4+
<el-form-item prop="value" :rules="rules">
55
<el-input show-password v-model="form.value" />
66
</el-form-item>
77
<el-button class="w-full mt-8" type="primary" @click="validator" :loading="loading">
@@ -11,7 +11,7 @@
1111
</div>
1212
</template>
1313
<script setup lang="ts">
14-
import { ref, computed } from 'vue'
14+
import { ref, reactive } from 'vue'
1515
import { useRoute } from 'vue-router'
1616
import useStore from '@/stores'
1717
import { t } from '@/locales'
@@ -38,9 +38,9 @@ const validator = () => {
3838
FormRef.value.validate()
3939
}
4040
41-
const rules = {
41+
const rules = reactive({
4242
value: [{ required: true, validator: validator_auth, trigger: 'manual' }],
43-
}
43+
})
4444
4545
const form = ref({
4646
type: 'password',

0 commit comments

Comments
 (0)