main.js 467 B

1234567891011121314151617181920212223242526
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false
  5. Vue.prototype.$g={
  6. baseUrl:"https://dadu.oss-cn-hangzhou.aliyuncs.com"
  7. }
  8. // baseUrl:"http://127.0.0.1:3000"
  9. // baseUrl:"https://dadu.ispush.com"
  10. App.mpType = 'app'
  11. const app = new Vue({
  12. ...App
  13. })
  14. app.$mount()
  15. // #endif
  16. // #ifdef VUE3
  17. import { createSSRApp } from 'vue'
  18. export function createApp() {
  19. const app = createSSRApp(App)
  20. return {
  21. app
  22. }
  23. }
  24. // #endif