|
@@ -69,6 +69,7 @@ const allowRequest = function (reqList, url) {
|
|
|
|
|
|
|
|
|
service.interceptors.request.use(config => {
|
|
|
+ Vue.prototype.$layer.loading({ content: '请稍等!' });
|
|
|
let cancel = null;
|
|
|
|
|
|
config.cancelToken = new axios.CancelToken(function (c) {
|
|
@@ -78,7 +79,6 @@ service.interceptors.request.use(config => {
|
|
|
stopRepeatRequest(reqList, config.url, cancel, `${config.url} 请求被中断`)
|
|
|
|
|
|
|
|
|
- Vue.prototype.$layer.loading({ content: '请稍等!' });
|
|
|
|
|
|
const isToken = (config.headers || {}).isToken === false
|
|
|
|