Files
2026-06-29 10:54:33 +08:00

23 lines
441 B
JavaScript

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
}
}