|
|
@ -7,9 +7,16 @@ import App from './App.vue'
|
|
|
|
// 导入Element Plus
|
|
|
|
// 导入Element Plus
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
|
// createApp(App).mount('#app')
|
|
|
|
// createApp(App).mount('#app')
|
|
|
|
|
|
|
|
|
|
|
|
// 挂载路由
|
|
|
|
// 挂载路由
|
|
|
|
// 导入组件
|
|
|
|
// 导入组件
|
|
|
|
createApp(App).use(router).use(ElementPlus).mount('#app');
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
app.use(router).use(ElementPlus).mount('#app');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 全局注册图标组件
|
|
|
|
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
|
|
|
|
|
app.component(key, component)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|