Commit f2c98347 authored by bwcx_jzy's avatar bwcx_jzy
Browse files

net error close loading

parent 2736c39b
Showing with 1 addition and 1 deletion
+1 -1
......@@ -86,7 +86,7 @@ request.interceptors.response.use(response => {
return res;
}, error => {
// 如果 headers 里面配置了 loading: no 就不用 loading
if (!error.response.config.headers[NO_LOADING_KEY]) {
if (!error.response || !error.response.config || !error.response.config.headers[NO_LOADING_KEY]) {
$global_loading.close();
}
// 如果 headers 里面配置了 tip: no 就不用弹出提示信息
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment