#
whycq
2023-02-13 1bea37073f305929215bf2c3f28e2263acb6fc20
main.js
@@ -1,25 +1,11 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
// Vue.prototype.baseUrl = "http://localhost:8081/acs"
Vue.prototype.baseIP = '192.168.4.138'
const baseIP = Vue.prototype.baseIP
Vue.prototype.baseUrl = 'http://' + baseIP + ':8082/xgmwms'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import {
   createSSRApp
} from 'vue'
// 不能修改导出的 createApp 方法名,不能修改从 Vue 中导入的 createSSRApp。
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
   const app = createSSRApp(App)
   return {
      app
   }
}
// #endif