|
@@ -9,6 +9,9 @@ import moment from 'moment';
|
|
import '@/assets/main.css';
|
|
import '@/assets/main.css';
|
|
import 'animate.css';
|
|
import 'animate.css';
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
|
|
+// 组件
|
|
|
|
+// 组件
|
|
|
|
+import frameComponents from '@/components/index';
|
|
const app = createApp(App);
|
|
const app = createApp(App);
|
|
app.use(createPinia());
|
|
app.use(createPinia());
|
|
app.use(router);
|
|
app.use(router);
|
|
@@ -16,6 +19,9 @@ app.use(ElementPlus, { locale });
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component);
|
|
app.component(key, component);
|
|
}
|
|
}
|
|
|
|
+for (const componentItme in frameComponents) {
|
|
|
|
+ app.component(componentItme, frameComponents[componentItme]);
|
|
|
|
+}
|
|
|
|
|
|
app.config.globalProperties.$moment = moment;
|
|
app.config.globalProperties.$moment = moment;
|
|
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;
|