mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-16 23:22:20 +08:00
后台右上角显示当前登录用户;退出登录按钮鼠标悬浮样式
This commit is contained in:
@@ -46,8 +46,8 @@
|
||||
var data = axiosData.data;
|
||||
if (status === "success") {
|
||||
console.log(data)
|
||||
if(data) {
|
||||
|
||||
if (data) {
|
||||
document.getElementById("nickname").innerHTML = "当前登录用户:" + data.nickname;
|
||||
} else {
|
||||
window.location.href = "/login";
|
||||
}
|
||||
|
Reference in New Issue
Block a user