|
@@ -1,7 +1,9 @@
|
|
|
// vm,就是我们在vue文件里面的this,所以我们能在这里获取vuex的变量,比如存放在里面的token
|
|
|
const install = (Vue, vm) => {
|
|
|
Vue.prototype.$u.http.setConfig({
|
|
|
- baseUrl: vm.config.baseUrl
|
|
|
+ baseUrl: vm.config.baseUrl,
|
|
|
+ loadingText: '努力加载中~',
|
|
|
+ loadingTime: 800
|
|
|
});
|
|
|
// 请求拦截,配置Token等参数
|
|
|
Vue.prototype.$u.http.interceptor.request = (config) => {
|