main.js 393 B

12345678910111213141516171819202122
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. import uView from "uview-ui";
  6. Vue.use(uView);
  7. import {
  8. goBack
  9. } from './utils/common.js' //公共方法
  10. Object.assign(Vue.prototype, {
  11. '$goBack': goBack,
  12. })
  13. Vue.config.productionTip = false
  14. App.mpType = 'app'
  15. const app = new Vue({
  16. ...App
  17. })
  18. // uni.$u.config.unit = 'rpx'
  19. app.$mount()
  20. // #endif