From 7da454563b16092102185d23b5b4f7100a21b2cd Mon Sep 17 00:00:00 2001 From: chansee97 Date: Sat, 14 Sep 2024 08:09:20 +0800 Subject: [PATCH] fix: import order --- build/plugins.ts | 12 ++++----- src/App.vue | 2 +- src/components/common/DarkModeSwitch.vue | 6 ++--- .../custom/Editor/MarkDownEditor/index.vue | 4 +-- .../custom/Editor/RichTextEditor/index.vue | 2 +- src/hooks/useEcharts.ts | 10 +++---- src/hooks/usePermission.ts | 2 +- .../components/common/SettingDrawer.vue | 2 +- src/layouts/components/header/Search.vue | 2 +- src/layouts/components/header/UserCenter.vue | 8 +++--- src/layouts/components/index.ts | 26 +++++++++---------- src/layouts/components/tab/TabBar.vue | 10 +++---- src/layouts/index.vue | 8 +++--- src/layouts/leftMenu.layout.vue | 2 +- src/layouts/mixMenu.layout.vue | 2 +- src/layouts/topMenu.layout.vue | 2 +- src/main.ts | 4 +-- src/modules/i18n.ts | 4 +-- src/router/index.ts | 2 +- src/service/http/alova.ts | 14 +++++----- src/service/http/handle.ts | 6 ++--- src/service/http/index.ts | 4 +-- src/service/index.ts | 4 +-- src/store/app/index.ts | 2 +- src/store/auth.ts | 6 ++--- src/store/router/helper.ts | 8 +++--- src/store/router/index.ts | 6 ++--- src/utils/i18n.ts | 2 +- src/utils/index.ts | 6 ++--- .../dashboard/monitor/components/chart.vue | 2 +- .../dashboard/monitor/components/chart2.vue | 2 +- src/views/dashboard/workbench/index.vue | 2 +- src/views/demo/echarts/index.vue | 2 +- .../fetch/components/DownLoadWithProgress.vue | 2 +- .../demo/fetch/components/UseRequest.vue | 4 +-- src/views/demo/fetch/index.vue | 16 ++++++------ src/views/demo/list/commonList/index.vue | 6 ++--- .../demo/permission/permission/index.vue | 2 +- src/views/login/components/Login/index.vue | 2 +- src/views/setting/account/index.vue | 8 +++--- src/views/setting/dictionary/index.vue | 8 +++--- .../setting/menu/components/TableModal.vue | 2 +- src/views/setting/menu/index.vue | 8 +++--- 43 files changed, 117 insertions(+), 117 deletions(-) diff --git a/build/plugins.ts b/build/plugins.ts index 3da638f..427e0e4 100644 --- a/build/plugins.ts +++ b/build/plugins.ts @@ -1,16 +1,16 @@ import UnoCSS from '@unocss/vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' -import VueDevTools from 'vite-plugin-vue-devtools' -import Components from 'unplugin-vue-components/vite' import AutoImport from 'unplugin-auto-import/vite' -import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' -import viteCompression from 'vite-plugin-compression' -import Icons from 'unplugin-icons/vite' import { FileSystemIconLoader } from 'unplugin-icons/loaders' - // https://github.com/antfu/unplugin-icons import IconsResolver from 'unplugin-icons/resolver' +import Icons from 'unplugin-icons/vite' +import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' +import Components from 'unplugin-vue-components/vite' +import viteCompression from 'vite-plugin-compression' + +import VueDevTools from 'vite-plugin-vue-devtools' /** * @description: 设置vite插件配置 diff --git a/src/App.vue b/src/App.vue index 20a5c16..8998bc3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ diff --git a/src/views/demo/echarts/index.vue b/src/views/demo/echarts/index.vue index 3746456..7bb52cc 100644 --- a/src/views/demo/echarts/index.vue +++ b/src/views/demo/echarts/index.vue @@ -1,6 +1,6 @@