46 lines
1004 B
JavaScript
46 lines
1004 B
JavaScript
import App from './App.vue'
|
|
import store from '@/common/store'
|
|
import {
|
|
baseUrl
|
|
} from "@/util/config.js"
|
|
import Vue from 'vue'
|
|
import uView from '@/uni_modules/uview-ui'
|
|
import dropDown from '@/uni_modules/zwx-dropDown/components/zwx-dropDown/zwx-dropDown'
|
|
import {
|
|
myRequest
|
|
} from '@/util/api.js'
|
|
import Common from '@/common/utils/common.js'
|
|
Vue.prototype.$myRequest = myRequest
|
|
Vue.component("dropDown", dropDown)
|
|
Vue.config.productionTip = false;
|
|
Vue.prototype.baseUrl = baseUrl
|
|
Vue.prototype.$store = store;
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
store,
|
|
...App,
|
|
mounted(){
|
|
uni.getStorage({
|
|
key: 'TOKEN',
|
|
success: function(res) {
|
|
console.log(res.data);
|
|
store.commit('setPropName', {
|
|
propName: 'token',
|
|
value: res.data
|
|
});
|
|
}
|
|
});
|
|
uni.getStorage({
|
|
key: 'USERINFO',
|
|
success: function(res) {
|
|
console.log(res.data);
|
|
store.commit('setPropName', {
|
|
propName: 'userInfo',
|
|
value: res.data
|
|
});
|
|
}
|
|
});
|
|
}
|
|
})
|
|
Vue.use(uView)
|
|
app.$mount() |