From a73728d8ad9fbdbc4f7dbe87264e42ae2d1e5102 Mon Sep 17 00:00:00 2001 From: LSH160981 <11414012+lsh123456lsh@user.noreply.gitee.com> Date: Wed, 28 Dec 2022 14:20:31 +0000 Subject: [PATCH 1/2] update src/main.ts. Signed-off-by: LSH160981 <11414012+lsh123456lsh@user.noreply.gitee.com> --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 9ceb772e..7b40dd2c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,7 +8,7 @@ import ElementPlus from 'element-plus' import 'element-plus/theme-chalk/index.css' import locale from 'element-plus/lib/locale/lang/zh-cn' import 'virtual:svg-icons-register'; - +// good morning author // @see https://blog.csdn.net/qq_37213281/article/details/121422027 import * as ElIconModules from '@element-plus/icons' -- Gitee From 62c72e8f792b3724f3878e7bfe7e556e5d9e388b Mon Sep 17 00:00:00 2001 From: LSH160981 <1609818658@qq.com> Date: Sun, 26 Feb 2023 10:48:52 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20src/?= =?UTF-8?q?main.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/main.ts diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index 7b40dd2c..00000000 --- a/src/main.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {createApp} from 'vue' -import App from './App.vue' -import router from "./router"; -import {store, key} from './store' -import '@/styles/index.scss' - -import ElementPlus from 'element-plus' -import 'element-plus/theme-chalk/index.css' -import locale from 'element-plus/lib/locale/lang/zh-cn' -import 'virtual:svg-icons-register'; -// good morning author - -// @see https://blog.csdn.net/qq_37213281/article/details/121422027 -import * as ElIconModules from '@element-plus/icons' -import '@/permission' - - -import Pagination from '@/components/Pagination/index.vue' -import {getDictItemsByCode} from '@/api/system/dict' - - -const app = createApp(App) - -// 统一注册el-icon图标 -// @link https://blog.csdn.net/Alloom/article/details/119415984 -for (let iconName in ElIconModules) { - app.component(iconName, (ElIconModules as any)[iconName]) -} - -// 全局方法 -app.config.globalProperties.$getDictItemsByCode = getDictItemsByCode - -app - .component('Pagination', Pagination) // 全局组件 - .use(router) - .use(store, key) - .use(ElementPlus, {locale}) - .mount('#app') \ No newline at end of file -- Gitee