初始化
This commit is contained in:
22
mokee-gateway-web/backup-on-demand/main.ts.bak
Normal file
22
mokee-gateway-web/backup-on-demand/main.ts.bak
Normal file
@@ -0,0 +1,22 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
import * as Icons from '@element-plus/icons-vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import './styles/global.css'
|
||||
import { permission } from './directives/permission'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
for (const [key, comp] of Object.entries(Icons)) {
|
||||
app.component(key, comp as any)
|
||||
}
|
||||
|
||||
app.use(createPinia())
|
||||
app.use(router)
|
||||
app.use(ElementPlus, { locale: zhCn })
|
||||
app.directive('permission', permission)
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user