refactor: add TypeScript type annotations and update ESLint rules
This commit is contained in:
parent
6dd1e68efc
commit
a3c5cf452c
@ -19,4 +19,11 @@ export default defineConfigWithVueTs(
|
|||||||
pluginVue.configs['flat/essential'],
|
pluginVue.configs['flat/essential'],
|
||||||
vueTsConfigs.recommended,
|
vueTsConfigs.recommended,
|
||||||
skipFormatting,
|
skipFormatting,
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': ['off'],
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -456,7 +456,7 @@ const uploadFile = async (file: any, fileList: any) => {
|
|||||||
formData,
|
formData,
|
||||||
localLoading,
|
localLoading,
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response: any) => {
|
||||||
fileList.splice(0, fileList.length)
|
fileList.splice(0, fileList.length)
|
||||||
uploadImageList.value.forEach((file: any) => {
|
uploadImageList.value.forEach((file: any) => {
|
||||||
const f = response.data.filter(
|
const f = response.data.filter(
|
||||||
|
|||||||
@ -65,11 +65,11 @@ const useApplicationStore = defineStore('application', {
|
|||||||
console.log('xxxx')
|
console.log('xxxx')
|
||||||
applicationApi
|
applicationApi
|
||||||
.getAppProfile(loading)
|
.getAppProfile(loading)
|
||||||
.then((res) => {
|
.then((res: any) => {
|
||||||
sessionStorage.setItem('language', res.data?.language || getBrowserLang())
|
sessionStorage.setItem('language', res.data?.language || getBrowserLang())
|
||||||
resolve(res)
|
resolve(res)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error: any) => {
|
||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -83,12 +83,12 @@ const useApplicationStore = defineStore('application', {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
applicationApi
|
applicationApi
|
||||||
.postAppAuthentication(token, loading, authentication_value)
|
.postAppAuthentication(token, loading, authentication_value)
|
||||||
.then((res) => {
|
.then((res: any) => {
|
||||||
localStorage.setItem(`${token}-accessToken`, res.data)
|
localStorage.setItem(`${token}-accessToken`, res.data)
|
||||||
sessionStorage.setItem(`${token}-accessToken`, res.data)
|
sessionStorage.setItem(`${token}-accessToken`, res.data)
|
||||||
resolve(res)
|
resolve(res)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error: any) => {
|
||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user