新增跳转时打开新窗口功能
This commit is contained in:
+3
-3
@@ -210,7 +210,7 @@
|
||||
{ btn: ["去登录", "取消"] },
|
||||
function (index) {
|
||||
layui.layer.close(index);
|
||||
window.location.href = "login.html";
|
||||
NavigationUtil.open("login.html");
|
||||
},
|
||||
);
|
||||
});
|
||||
@@ -566,11 +566,11 @@
|
||||
ApiClient.post(ApiClient.API.authLogout, {})
|
||||
.then(function () {
|
||||
localStorage.removeItem("token");
|
||||
window.location.href = "login.html";
|
||||
NavigationUtil.open("login.html");
|
||||
})
|
||||
.catch(function () {
|
||||
localStorage.removeItem("token");
|
||||
window.location.href = "login.html";
|
||||
NavigationUtil.open("login.html");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user