diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index 9ceb772ea3e137fb875faabd8a4345eaa67e697e..0000000000000000000000000000000000000000 --- 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'; - - -// @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