增加vue-router来控制页面显示

This commit is contained in:
2024-12-11 17:42:32 +08:00
parent c0bae2c1bb
commit e8b6e165bd
5 changed files with 52 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
import { createApp } from 'vue'
import './style.css'
import type { App as AppType } from 'vue'
import App from './App.vue'
import router from './router'
import './style.css'
const app: AppType = createApp(App)
const app = createApp(App)
app.use(router)
app.mount('#app')