From 94f72cd6d912c2eedfbf0551e3ebbf4ac065bb08 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 27 Oct 2022 12:43:01 +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/components/ReCountTo/src/normal/props.ts | 2 +- src/components/ReCountTo/src/rebound/props.ts | 2 +- src/components/ReFlop/src/filpper.tsx | 2 +- src/components/ReIcon/src/Select.vue | 2 +- src/components/ReMap/src/Amap.vue | 4 +- src/components/ReQrcode/src/index.tsx | 2 +- src/components/ReTable/src/bar.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 +- .../search/components/SearchFooter.vue | 4 +- .../search/components/SearchModal.vue | 6 +-- .../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/able.ts | 40 +++++++++---------- src/router/modules/about.ts | 4 +- src/router/modules/components.ts | 26 ++++++------ src/router/modules/editor.ts | 4 +- src/router/modules/error.ts | 8 ++-- src/router/modules/flowchart.ts | 4 +- src/router/modules/formdesign.ts | 4 +- src/router/modules/guide.ts | 4 +- src/router/modules/home.ts | 6 +-- src/router/modules/list.ts | 4 +- src/router/modules/nested.ts | 12 +++--- src/router/modules/ppt.ts | 2 +- src/router/modules/remaining.ts | 10 ++--- src/router/modules/result.ts | 6 +-- 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/able/barcode.vue | 2 +- src/views/able/cascader.vue | 2 +- src/views/able/icon-select.vue | 2 +- src/views/able/line-tree.vue | 6 +-- src/views/able/menu-tree.vue | 6 +-- src/views/able/print.vue | 2 +- src/views/able/qrcode.vue | 4 +- src/views/able/timeline.vue | 4 +- src/views/components/count-to/index.vue | 2 +- src/views/components/cropping/index.vue | 2 +- src/views/components/draggable/index.vue | 2 +- src/views/components/map/index.vue | 2 +- .../components/seamless-scroll/index.vue | 2 +- src/views/components/selector/index.vue | 2 +- src/views/components/split-pane/index.vue | 2 +- src/views/components/typeit/index.vue | 2 +- src/views/components/video/index.vue | 2 +- src/views/editor/index.vue | 2 +- src/views/empty/index.vue | 2 +- src/views/error/403.vue | 2 +- src/views/error/404.vue | 2 +- src/views/error/500.vue | 2 +- src/views/flow-chart/index.vue | 8 ++-- src/views/list/card/components/Card.vue | 10 ++--- src/views/list/card/index.vue | 4 +- src/views/login/components/phone.vue | 6 +-- src/views/login/components/qrCode.vue | 4 +- src/views/login/components/regist.vue | 6 +-- src/views/login/components/update.vue | 6 +-- src/views/login/index.vue | 28 ++++++------- src/views/login/utils/enums.ts | 2 +- src/views/login/utils/rule.ts | 4 +- src/views/login/utils/static.ts | 18 ++++----- src/views/permission/button/index.vue | 2 +- src/views/permission/page/index.vue | 6 +-- src/views/result/columns.tsx | 2 +- src/views/system/dept/index.vue | 6 +-- src/views/system/dict/config.vue | 2 +- src/views/system/dict/index.vue | 2 +- src/views/system/role/index.vue | 6 +-- src/views/system/user/index.vue | 6 +-- src/views/system/user/tree.vue | 4 +- src/views/tabs/hooks.ts | 2 +- src/views/tabs/index.vue | 6 +-- src/views/welcome/components/Infinite.vue | 2 +- src/views/welcome/components/columns.tsx | 2 +- src/views/welcome/index.vue | 2 +- tsconfig.json | 2 +- types/shims-vue.d.ts | 1 + vite.config.ts | 2 +- 108 files changed, 296 insertions(+), 300 deletions(-) diff --git a/build/plugins.ts b/build/plugins.ts index 6c2df0bcd..4100e147c 100644 --- a/build/plugins.ts +++ b/build/plugins.ts @@ -11,8 +11,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 442565874..d2cf9b351 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/components/ReCountTo/src/normal/props.ts b/src/components/ReCountTo/src/normal/props.ts index 461a2db19..69fe6613f 100644 --- a/src/components/ReCountTo/src/normal/props.ts +++ b/src/components/ReCountTo/src/normal/props.ts @@ -1,5 +1,5 @@ import { PropType } from "vue"; -import { propTypes } from "/@/utils/propTypes"; +import { propTypes } from "@/utils/propTypes"; export const countToProps = { startVal: propTypes.number.def(0), endVal: propTypes.number.def(2020), diff --git a/src/components/ReCountTo/src/rebound/props.ts b/src/components/ReCountTo/src/rebound/props.ts index 08850418f..795611d2b 100644 --- a/src/components/ReCountTo/src/rebound/props.ts +++ b/src/components/ReCountTo/src/rebound/props.ts @@ -1,5 +1,5 @@ import { PropType } from "vue"; -import { propTypes } from "/@/utils/propTypes"; +import { propTypes } from "@/utils/propTypes"; export const reboundProps = { delay: propTypes.number.def(1), blur: propTypes.number.def(2), diff --git a/src/components/ReFlop/src/filpper.tsx b/src/components/ReFlop/src/filpper.tsx index 7ec908cec..77f6cfcf8 100644 --- a/src/components/ReFlop/src/filpper.tsx +++ b/src/components/ReFlop/src/filpper.tsx @@ -1,5 +1,5 @@ import { defineComponent, ref } from "vue"; -import { propTypes } from "/@/utils/propTypes"; +import { propTypes } from "@/utils/propTypes"; import "./filpper.css"; const props = { diff --git a/src/components/ReIcon/src/Select.vue b/src/components/ReIcon/src/Select.vue index 3bb899208..36d22ab43 100644 --- a/src/components/ReIcon/src/Select.vue +++ b/src/components/ReIcon/src/Select.vue @@ -1,7 +1,7 @@