12345678910111213141516171819202122232425262728293031323334353637 |
- import Vue from 'vue'
- import App from './App'
- import store from './store'
- import {
- dayjs
- } from '@/uni_modules/iRainna-dayjs/js_sdk/dayjs.min.js'
- Vue.prototype.$store = store;
- Vue.prototype.$dayjs = dayjs;
- Vue.prototype.$toast = msg => {
- uni.showToast({
- title: msg,
- icon: "none"
- })
- };
- Vue.prototype.$navigateTo = (url) => {
- console.log(uni.getStorageSync('token'));
- uni.navigateTo({
- url: url
- })
- }
- import field from './config/field.js'
- Vue.prototype.$field = field;
- Vue.config.productionTip = false;
- App.mpType = 'app';
- const app = new Vue({
- store,
- ...App
- })
- app.$mount()
|