文西527
文西527
  • 发布:2021-09-12 13:07
  • 更新:2021-09-12 13:07
  • 阅读:592

为什么Vue3 mixin 全局注入后 页面的onShow什么全部失效了呢

分类:uni-app
import {  
    createSSRApp  
} from 'vue'  
const myMixin = {  
    data() {  
        return {  
            message: 'hello',  
            foo: 'abc'  
        }  
    }  
}  
export function createApp() {  
    const app = createSSRApp(App)  
    app.use(store)  

    app.mixin(xmixin);  
    return {  
        app  
    }  
}
2021-09-12 13:07 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复