main.js
@@ -1,23 +1,9 @@ import App from './App' // #ifndef VUE3 import Vue from 'vue' Vue.prototype.baseHttp = 'http://' Vue.prototype.basePort = '8080' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' // 不能修改导出的 createApp 方法名,不能修改从 Vue 中导入的 createSSRApp。 export function createApp() { const app = createSSRApp(App) return { app app } } // #endif }