mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-16 23:22:20 +08:00
localStorage操作统一使用localStorage.getItem,localStorage.removeItem;登录前判断用户名密码是否为空
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
if (localStorage.token)
|
||||
if (localStorage.getItem("token"))
|
||||
$("#dashboard").html("后台");
|
||||
|
||||
function navbarHighlight() {
|
||||
|
Reference in New Issue
Block a user