You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
692 B

8 months ago
  1. import App from './App'
  2. import Vue from 'vue'
  3. import store from './store';
  4. import { goPage } from './common/js/uniExport.js'
  5. Vue.prototype.$goPage = goPage;
  6. import './uni.promisify.adaptor'
  7. Vue.config.productionTip = false
  8. App.mpType = 'app'
  9. // main.js,注意要在use方法之后执行
  10. import uView from '@/uni_modules/uview-ui'
  11. Vue.use(uView)
  12. import tabBar from "components/UserTab/UserTab.vue"
  13. Vue.component('tabBar',tabBar)
  14. import mixin from "./common/js/mixins.js"
  15. Vue.mixin(mixin)
  16. const app = new Vue({
  17. ...App,
  18. store
  19. })
  20. require('./config/request.js')(app)
  21. import utils from "@/common/js/utils.js"
  22. console.log(utils)
  23. // 自定义工具
  24. Vue.use(utils,app)
  25. app.$mount()