23 lines
654 B
TypeScript
23 lines
654 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import './css/index.scss'
|
|
import * as ElIcons from '@element-plus/icons-vue'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
import globalProperties from './utils/globalProperties'
|
|
import hasPermission from './utils/hasPermission'
|
|
|
|
const app = createApp(App)
|
|
app.use(router).use(globalProperties)
|
|
app.use(ElementPlus,{
|
|
locale: zhCn,
|
|
size: 'default',
|
|
})
|
|
for (const icon in ElIcons) {
|
|
app.component(icon, (ElIcons as any)[icon])
|
|
}
|
|
app.use(hasPermission)
|
|
app.mount('#app');
|