增加屏蔽loading功能

This commit is contained in:
pixel
2020-10-10 13:33:33 +08:00
parent 130910308d
commit 8fd8296c69
2 changed files with 19 additions and 15 deletions

View File

@@ -30,7 +30,10 @@ const closeLoading = () => {
//http request 拦截器
service.interceptors.request.use(
config => {
showLoading()
console.log(config)
if (!config.donNotShowLoading) {
showLoading()
}
const token = store.getters['user/token']
const user = store.getters['user/userInfo']
config.data = JSON.stringify(config.data);