main.js 535 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. const app = new Vue({
  8. ...App
  9. })
  10. app.$mount()
  11. // #endif
  12. // #ifdef VUE3
  13. import { createSSRApp } from 'vue'
  14. export function createApp() {
  15. const app = createSSRApp(App)
  16. return {
  17. app
  18. }
  19. }
  20. // #endif
  21. import {$App,$Api,$Config,$Qrcode} from 'static/js/index.js';
  22. Vue.prototype.$app = $App;
  23. Vue.prototype.$api = $Api;
  24. Vue.prototype.$config = $Config;
  25. Vue.prototype.$qrcode = $Qrcode;