1.main.js

Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve;
})

2.app.vue的onLaunch

this.$isResolve()

3.首页onLoad

async onLoad(options) {
    await this.$onLaunched;
},

Logo

前往低代码交流专区

更多推荐