From 7d419c3b356f310bd9506fef6a201817e0185ef1 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 27 Oct 2022 13:17:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8`@/`=E5=88=AB?= =?UTF-8?q?=E5=90=8D=E6=9B=BF=E6=8D=A2`/@/`=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/plugins.ts | 2 +- src/components/ReAuth/src/auth.tsx | 2 +- src/directives/auth/index.ts | 2 +- src/directives/elResizeDetector/index.ts | 2 +- src/layout/components/appMain.vue | 4 ++-- src/layout/components/navbar.vue | 6 +++--- src/layout/components/panel/index.vue | 2 +- .../components/search/components/SearchFooter.vue | 4 ++-- .../components/search/components/SearchModal.vue | 6 +++--- .../components/search/components/SearchResult.vue | 6 +++--- src/layout/components/setting/index.vue | 22 ++++++++++---------- src/layout/components/sidebar/breadCrumb.vue | 6 +++--- src/layout/components/sidebar/horizontal.vue | 8 ++++---- src/layout/components/sidebar/logo.vue | 2 +- src/layout/components/sidebar/mixNav.vue | 14 ++++++------- src/layout/components/sidebar/sidebarItem.vue | 6 +++--- src/layout/components/sidebar/vertical.vue | 8 ++++---- src/layout/components/tag/index.vue | 12 +++++------ src/layout/hooks/useDataThemeChange.ts | 4 ++-- src/layout/hooks/useLayout.ts | 2 +- src/layout/hooks/useNav.ts | 14 ++++++------- src/layout/hooks/useTag.ts | 6 +++--- src/layout/index.vue | 8 ++++---- src/main.ts | 14 ++++++------- src/plugins/vxe-table/index.ts | 2 +- src/router/index.ts | 12 +++++------ src/router/modules/error.ts | 8 ++++---- src/router/modules/home.ts | 6 +++--- src/router/modules/remaining.ts | 8 ++++---- src/router/utils.ts | 10 ++++----- src/store/modules/app.ts | 4 ++-- src/store/modules/epTheme.ts | 4 ++-- src/store/modules/multiTags.ts | 4 ++-- src/store/modules/permission.ts | 6 +++--- src/store/modules/settings.ts | 4 ++-- src/store/modules/user.ts | 19 +++++++---------- src/utils/auth.ts | 2 +- src/utils/http/README.md | 4 ++-- src/utils/http/index.ts | 4 ++-- src/utils/responsive.ts | 2 +- src/views/error/403.vue | 2 +- src/views/error/404.vue | 2 +- src/views/error/500.vue | 2 +- src/views/login/index.vue | 24 +++++++++++----------- src/views/login/utils/rule.ts | 2 +- src/views/login/utils/static.ts | 6 +++--- src/views/permission/button/index.vue | 2 +- src/views/permission/page/index.vue | 6 +++--- tsconfig.json | 2 +- vite.config.ts | 2 +- 50 files changed, 153 insertions(+), 158 deletions(-) diff --git a/build/plugins.ts b/build/plugins.ts index cb54983..f9a3a8a 100644 --- a/build/plugins.ts +++ b/build/plugins.ts @@ -12,8 +12,8 @@ import VueI18n from "@intlify/vite-plugin-vue-i18n"; import { visualizer } from "rollup-plugin-visualizer"; import removeConsole from "vite-plugin-remove-console"; import themePreprocessorPlugin from "@pureadmin/theme"; -import { genScssMultipleScopeVars } from "/@/layout/theme"; import DefineOptions from "unplugin-vue-define-options/vite"; +import { genScssMultipleScopeVars } from "../src/layout/theme"; export function getPluginsList( command: string, diff --git a/src/components/ReAuth/src/auth.tsx b/src/components/ReAuth/src/auth.tsx index 4425658..d2cf9b3 100644 --- a/src/components/ReAuth/src/auth.tsx +++ b/src/components/ReAuth/src/auth.tsx @@ -1,5 +1,5 @@ import { defineComponent, Fragment } from "vue"; -import { hasAuth } from "/@/router/utils"; +import { hasAuth } from "@/router/utils"; export default defineComponent({ name: "Auth", diff --git a/src/directives/auth/index.ts b/src/directives/auth/index.ts index 306dfd3..69118d6 100644 --- a/src/directives/auth/index.ts +++ b/src/directives/auth/index.ts @@ -1,4 +1,4 @@ -import { hasAuth } from "/@/router/utils"; +import { hasAuth } from "@/router/utils"; import { Directive, type DirectiveBinding } from "vue"; export const auth: Directive = { diff --git a/src/directives/elResizeDetector/index.ts b/src/directives/elResizeDetector/index.ts index 65ac3c3..af089be 100644 --- a/src/directives/elResizeDetector/index.ts +++ b/src/directives/elResizeDetector/index.ts @@ -1,7 +1,7 @@ import { Directive, type DirectiveBinding, type VNode } from "vue"; import elementResizeDetectorMaker from "element-resize-detector"; import type { Erd } from "element-resize-detector"; -import { emitter } from "/@/utils/mitt"; +import { emitter } from "@/utils/mitt"; const erd: Erd = elementResizeDetectorMaker({ strategy: "scroll" diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index ba3238a..e9b5450 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -1,8 +1,8 @@