main.js 628 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import {
  5. dayjs
  6. } from '@/uni_modules/iRainna-dayjs/js_sdk/dayjs.min.js'
  7. Vue.prototype.$store = store;
  8. Vue.prototype.$dayjs = dayjs;
  9. Vue.prototype.$toast = msg => {
  10. uni.showToast({
  11. title: msg,
  12. icon: "none"
  13. })
  14. };
  15. Vue.prototype.$navigateTo = (url) => {
  16. console.log(uni.getStorageSync('token'));
  17. uni.navigateTo({
  18. url: url
  19. })
  20. }
  21. import field from './config/field.js'
  22. Vue.prototype.$field = field;
  23. Vue.config.productionTip = false;
  24. App.mpType = 'app';
  25. const app = new Vue({
  26. store,
  27. ...App
  28. })
  29. app.$mount()