YOUFANG app 1.0.3

This commit is contained in:
zongzhimin
2018-04-14 15:41:26 +08:00
parent dd07caa411
commit 02ed5fad64
14 changed files with 10 additions and 26 deletions
+9 -1
View File
@@ -14,6 +14,14 @@ axios.interceptors.request.use(function (config) {
axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
clicked('error.html',true,false,{},{},function(){})
if(error=="Error: Network Error"){
if(plus.webview.getWebviewById('error.html')==null){
clicked('error.html',true,false,{},{},function(){
window.location.reload();
})
}else{
plus.webview.getWebviewById("error.html").show();
}
}
return Promise.reject(error);
});