diff --git a/.eslintrc.js b/.eslintrc.js index f6069c752da872376dad20d7285432517395e743..6042c39be0864a75105eabc787224abee03a6e41 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 40df4749927f06e2a6a0422c0c1f979730f85a80..1fd56f08a1c72b287819f25e55e661b4ebac3c32 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 57a30aceac2f6d8c3a8fca67e5babb8b8751cbc7..9502e60fc1f51dadff40da24f404f6e72785174c 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 44dee6d5bb5d9e93d07e15e0a17da8ec8ca7cb9f..05b574fe9008ab3e11b7d271b54630a3e5f502c0 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -27,11 +27,14 @@