1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-16 23:22:20 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

后台右上角显示当前登录用户;退出登录按钮鼠标悬浮样式

This commit is contained in:
2022-04-15 22:57:52 +08:00
parent 7f5fd3e70f
commit 3b29820f2c
2 changed files with 23 additions and 3 deletions

View File

@@ -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";
}