main.js 354 B

123456789101112131415161718192021
  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. import {
  7. goBack
  8. } from '@/utils/common.js' //公共方法
  9. Vue.config.productionTip = false
  10. Object.assign(Vue.prototype, {
  11. '$goBack': goBack,
  12. })
  13. Vue.use(uView);
  14. App.mpType = 'app'
  15. const app = new Vue({
  16. ...App
  17. })
  18. app.$mount()