增加屏蔽loading功能
This commit is contained in:
parent
130910308d
commit
8fd8296c69
|
|
@ -38,5 +38,6 @@ export const getSystemState = () => {
|
||||||
return service({
|
return service({
|
||||||
url: "/system/getServerInfo",
|
url: "/system/getServerInfo",
|
||||||
method: "post",
|
method: "post",
|
||||||
|
donNotShowLoading: true
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -30,7 +30,10 @@ const closeLoading = () => {
|
||||||
//http request 拦截器
|
//http request 拦截器
|
||||||
service.interceptors.request.use(
|
service.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
|
console.log(config)
|
||||||
|
if (!config.donNotShowLoading) {
|
||||||
showLoading()
|
showLoading()
|
||||||
|
}
|
||||||
const token = store.getters['user/token']
|
const token = store.getters['user/token']
|
||||||
const user = store.getters['user/userInfo']
|
const user = store.getters['user/userInfo']
|
||||||
config.data = JSON.stringify(config.data);
|
config.data = JSON.stringify(config.data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue