main.js 541 B

1234567891011121314151617181920212223
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import * as Db from './config/db.js';//缓存操作
  5. import * as Util from './config/util.js';//通用方法
  6. import { hex_md5 } from './config/md5.js';//加密
  7. import uView from "uview-ui";
  8. Vue.use(uView);
  9. Vue.config.productionTip = false
  10. Vue.prototype.$store = store;
  11. Vue.prototype.$db = Db;
  12. Vue.prototype.$util = Util;
  13. Vue.prototype.$md5 = hex_md5;
  14. Vue.prototype.$global = App.globalData;
  15. App.mpType = 'app'
  16. const app = new Vue({
  17. ...App,
  18. store
  19. })
  20. app.$mount()