diff --git a/ui/eslint.config.ts b/ui/eslint.config.ts index 20475f81..11a23013 100644 --- a/ui/eslint.config.ts +++ b/ui/eslint.config.ts @@ -19,4 +19,11 @@ export default defineConfigWithVueTs( pluginVue.configs['flat/essential'], vueTsConfigs.recommended, skipFormatting, + { + rules: { + 'vue/multi-word-component-names': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': ['off'], + } + } ) 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 099739ed..5df07308 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 @@ -456,7 +456,7 @@ const uploadFile = async (file: any, fileList: any) => { formData, localLoading, ) - .then((response) => { + .then((response: any) => { fileList.splice(0, fileList.length) uploadImageList.value.forEach((file: any) => { const f = response.data.filter( diff --git a/ui/src/stores/modules/application.ts b/ui/src/stores/modules/application.ts index ad551305..288d7eba 100644 --- a/ui/src/stores/modules/application.ts +++ b/ui/src/stores/modules/application.ts @@ -65,11 +65,11 @@ const useApplicationStore = defineStore('application', { console.log('xxxx') applicationApi .getAppProfile(loading) - .then((res) => { + .then((res: any) => { sessionStorage.setItem('language', res.data?.language || getBrowserLang()) resolve(res) }) - .catch((error) => { + .catch((error: any) => { reject(error) }) }) @@ -83,12 +83,12 @@ const useApplicationStore = defineStore('application', { return new Promise((resolve, reject) => { applicationApi .postAppAuthentication(token, loading, authentication_value) - .then((res) => { + .then((res: any) => { localStorage.setItem(`${token}-accessToken`, res.data) sessionStorage.setItem(`${token}-accessToken`, res.data) resolve(res) }) - .catch((error) => { + .catch((error: any) => { reject(error) }) })