mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-29 04:20:22 +08:00
init
This commit is contained in:
31
src/main.js
Normal file
31
src/main.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/**********************************
|
||||
* @Description: 入口文件
|
||||
* @FilePath: main.js
|
||||
* @Author: Ronnie Zhang
|
||||
* @LastEditor: Ronnie Zhang
|
||||
* @LastEditTime: 2023/12/04 22:41:32
|
||||
* @Email: zclzone@outlook.com
|
||||
* Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
|
||||
**********************************/
|
||||
|
||||
import '@/styles/reset.css'
|
||||
import '@/styles/global.scss'
|
||||
import 'uno.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import { setupRouter } from './router'
|
||||
import { setupStore } from './store'
|
||||
import { setupNaiveDiscreteApi } from './utils'
|
||||
import { setupDirectives } from './directives'
|
||||
|
||||
async function bootstrap() {
|
||||
const app = createApp(App)
|
||||
setupStore(app)
|
||||
setupNaiveDiscreteApi()
|
||||
setupDirectives(app)
|
||||
await setupRouter(app)
|
||||
app.mount('#app')
|
||||
}
|
||||
|
||||
bootstrap()
|
||||
Reference in New Issue
Block a user