diff --git a/js/common.js b/js/common.js index 105c7d9..fe5a264 100644 --- a/js/common.js +++ b/js/common.js @@ -52,7 +52,10 @@ function $ajaxget(url, data) { } ) .then(function (res) { + console.log("res", res) + var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data + if (data.code == 401) { openShowWindow() reject()