import App from './App';
// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.config.productionTip = false;
App.mpType = 'app';
// 全局混入showToast,控制台报错
let mixin = {
methods: {
showToast: function () {
console.log('====== showToast');
}
}
};
Vue.mixin(mixin);
const app = new Vue({
...App
});
app.$mount();
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue';
export function createApp() {
const app = createSSRApp(App);
return {
app
};
}
// #endif
3***@qq.com (作者)
我这是老的微信项目,要做WEB端适配,新项目到无所谓
2025-10-15 15:15
6***@qq.com
回复 3***@qq.com: 全局做一下替换吧,这东西不可能给你优化的
2025-10-15 15:17