|
@@ -1,39 +1,39 @@
|
|
|
-import { createApp } from 'vue'
|
|
|
-import { createPinia } from 'pinia'
|
|
|
-import App from './App.vue'
|
|
|
-import router from './router'
|
|
|
+import { createApp } from 'vue';
|
|
|
+import { createPinia } from 'pinia';
|
|
|
+import App from './App.vue';
|
|
|
+import router from './router';
|
|
|
// 样式
|
|
|
-import '@/assets/main.css'
|
|
|
+import '@/assets/main.css';
|
|
|
// 动画
|
|
|
-import 'animate.css'
|
|
|
+import 'animate.css';
|
|
|
// element
|
|
|
-import ElementPlus from 'element-plus'
|
|
|
-import 'element-plus/dist/index.css'
|
|
|
-import locale from 'element-plus/lib/locale/lang/zh-cn'
|
|
|
-import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
+import ElementPlus from 'element-plus';
|
|
|
+import 'element-plus/dist/index.css';
|
|
|
+import locale from 'element-plus/lib/locale/lang/zh-cn';
|
|
|
+import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
|
|
|
|
// 图标
|
|
|
-import '@/assets/icon/iconfont.css'
|
|
|
+import '@/assets/icon/iconfont.css';
|
|
|
|
|
|
// moment
|
|
|
-import moment from 'moment'
|
|
|
+import moment from 'moment';
|
|
|
// lodash
|
|
|
// import _ from 'lodash';
|
|
|
|
|
|
// 组件
|
|
|
-import frameComponents from '@/components/index'
|
|
|
-const app = createApp(App)
|
|
|
-app.use(createPinia())
|
|
|
-app.use(router)
|
|
|
-app.use(ElementPlus, { locale })
|
|
|
+import frameComponents from '@/components/index';
|
|
|
+const app = createApp(App);
|
|
|
+app.use(createPinia());
|
|
|
+app.use(router);
|
|
|
+app.use(ElementPlus, { locale });
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
- app.component(key, component)
|
|
|
+ app.component(key, component);
|
|
|
}
|
|
|
-app.config.globalProperties.$moment = moment
|
|
|
+app.config.globalProperties.$moment = moment;
|
|
|
|
|
|
for (const componentItme in frameComponents) {
|
|
|
- app.component(componentItme, frameComponents[componentItme])
|
|
|
+ app.component(componentItme, frameComponents[componentItme]);
|
|
|
}
|
|
|
-app.config.globalProperties.$limit = parseInt(import.meta.env.VITE_APP_PAGE_SIZE) || 10
|
|
|
+app.config.globalProperties.$limit = parseInt(import.meta.env.VITE_APP_PAGE_SIZE) || 10;
|
|
|
|
|
|
-app.mount('#app')
|
|
|
+app.mount('#app');
|