@@ -89,6 +89,10 @@ const post = function (url, data) {
resolve({ data: res });
},
error: function (error) {
+ if(error.status===403||error.status===401){
+ const wd = window.parent.window||window;
+ wd.location.href = "../login.html";
+ }
reject(error);
});