You've already forked template-MP-ts
补全遗失的状态管理引用
This commit is contained in:
2
main.ts
2
main.ts
@@ -1,6 +1,7 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
import store from './store'
|
||||||
|
|
||||||
// 创建应用实例
|
// 创建应用实例
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
@@ -14,6 +15,7 @@ app.provide('ASSETSURL', ASSETSURL)
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import uView from './uview-plus/index'
|
import uView from './uview-plus/index'
|
||||||
app.use(uView)
|
app.use(uView)
|
||||||
|
app.use(store)
|
||||||
|
|
||||||
// 挂载应用
|
// 挂载应用
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
|||||||
Reference in New Issue
Block a user