refactor(project): Reorganize frontend and backend directories
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
|
||||
// Vant 组件按需引入由 unplugin-vue-components 自动完成
|
||||
// 样式已自动引入
|
||||
|
||||
// 全局样式
|
||||
import '@/styles/index.scss'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
// Pinia 状态管理
|
||||
const pinia = createPinia()
|
||||
pinia.use(piniaPluginPersistedstate)
|
||||
app.use(pinia)
|
||||
|
||||
// 路由
|
||||
app.use(router)
|
||||
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user