main.js 609 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import App from './App'
  2. // 引入 uView UI
  3. import uView from './uni_modules/vk-uview-ui';
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. // 引入 uView UI
  7. Vue.use(uView);
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. const app = new Vue({
  11. ...App
  12. });
  13. import api from './api'
  14. uni.api = api
  15. uni.baseUrl = 'https://api.fangpiaovip.com/'
  16. import * as tools from './utils/tool'
  17. uni.$msg = tools.msgBase
  18. uni.$msgConfirm = tools.confirmMsgFn
  19. app.$mount();
  20. // #endif
  21. // #ifdef VUE3
  22. import { createSSRApp } from 'vue'
  23. export function createApp() {
  24. const app = createSSRApp(App)
  25. return { app }
  26. }
  27. // #endif