feat: 调整为路由模式

This commit is contained in:
ChenZhaoYu
2023-02-13 12:38:44 +08:00
parent 39f718ef16
commit 951636869b
16 changed files with 316 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
import './styles/global.css'
import { createApp } from 'vue'
import App from './App.vue'
import './styles/global.css'
import { setupRouter } from '@/router'
/** Tailwind's Preflight Style Override */
function naiveStyleOverride() {
@@ -10,9 +12,10 @@ function naiveStyleOverride() {
}
/** Setup */
function bootstrap() {
async function bootstrap() {
const app = createApp(App)
naiveStyleOverride()
await setupRouter(app)
app.mount('#app')
}