main.js 588 B

123456789101112131415161718192021222324252627282930
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false
  5. import request from 'common/request.js'
  6. import common from 'common/common.js'
  7. Vue.prototype.$http = request.http
  8. Vue.prototype.$request =request
  9. Vue.prototype.$webURL = request.webURL
  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
  25. // 防止多次点击
  26. Vue.prototype.$noMultipleClicks = common.noMultipleClicks;