diff --git a/.eslintrc.js b/.eslintrc.js index f6069c7..6042c39 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/.gitignore b/.gitignore index 40df474..1fd56f0 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ selenium-debug.log package-lock.json yarn.lock +pnpm-lock.yaml # 编译生成的文件 auto-imports.d.ts 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 @@