调整路由拦截模式

This commit is contained in:
唐明明
2021-09-24 14:54:16 +08:00
parent 079b016896
commit 9c8b34cc30
5 changed files with 31 additions and 4 deletions

10
main.js
View File

@@ -12,8 +12,14 @@ Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
})
// #ifdef H5
RouterMount(app,router,'#app')
// #endif
// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'