初始化

This commit is contained in:
leiking
2026-06-29 10:54:33 +08:00
parent 761cee968e
commit 4983006317
156 changed files with 25687 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import Vue from 'vue'
import App from './App.vue'
export function createApp() {
Vue.config.productionTip = false
App.mpType = 'app'
if (!Vue.prototype.$mp) Vue.prototype.$mp = {}
if (!Vue.prototype.$mp.query) Vue.prototype.$mp.query = {}
Vue.mixin({
beforeCreate() {
if (!this.$mp) this.$mp = {}
if (!this.$mp.query) this.$mp.query = {}
}
})
const app = new Vue({
...App
})
return {
app
}
}