From bd2ed0903a3a601e22410bed3f76d898be5e3b60 Mon Sep 17 00:00:00 2001 From: ahao Date: Thu, 14 Dec 2023 16:09:13 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BE=9D=E8=B5=96=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 + src/components/Breadcrumb/index.vue | 4 +- src/components/Editor/index.vue | 7 ++- src/components/FileUpload/index.vue | 9 ++-- src/components/ImagePreview/index.vue | 2 +- src/components/ImageUpload/index.vue | 5 +- src/layout/components/InnerLink/index.vue | 2 +- src/layout/components/Settings/index.vue | 2 +- src/layout/components/Sidebar/SidebarItem.vue | 3 +- src/layout/components/Sidebar/index.vue | 5 +- src/layout/components/TagsView/ScrollPane.vue | 1 + src/layout/components/TagsView/index.vue | 8 +-- src/permission.ts | 7 +-- src/store/modules/tagsView.ts | 4 +- src/types/axios.d.ts | 2 +- src/types/element.d.ts | 2 +- src/types/env.d.ts | 54 ------------------- src/types/global.d.ts | 3 +- src/types/module.d.ts | 5 ++ src/types/router.d.ts | 1 + src/types/vform3-builds.d.ts | 4 -- src/utils/index.ts | 2 +- src/utils/ruoyi.ts | 2 +- src/views/monitor/operlog/index.vue | 2 +- src/views/system/role/selectUser.vue | 3 +- src/views/system/user/index.vue | 43 +++++++++++++-- src/views/system/user/profile/thirdParty.vue | 6 +-- src/views/system/user/profile/userInfo.vue | 5 +- src/views/tool/gen/genInfoForm.vue | 9 ++-- tsconfig.json | 8 ++- 30 files changed, 108 insertions(+), 104 deletions(-) delete mode 100644 src/types/vform3-builds.d.ts diff --git a/.eslintrc.js b/.eslintrc.js index 3fab2db..24c17c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,8 @@ module.exports = { rules: { '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': 'off', + '@typescript-eslint/no-this-alias': 'off', // vue 'vue/multi-word-component-names': 'off', diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 57a30ac..9502e60 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -33,9 +33,9 @@ const isDashboard = (route: RouteLocationMatched) => { } return name.trim() === 'Index'; }; -const handleLink = (item: RouteLocationMatched) => { +const handleLink = (item) => { const { redirect, path } = item; - redirect ? router.push(redirect as string) : router.push(path); + redirect ? router.push(redirect) : router.push(path); }; watchEffect(() => { diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 44dee6d..05b574f 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -27,11 +27,14 @@