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

localStorage操作统一使用localStorageUtils完成

This commit is contained in:
2022-04-06 13:44:47 +08:00
parent 69b46b5e97
commit 885f2b68e7
12 changed files with 149 additions and 88 deletions

View File

@@ -9,6 +9,7 @@
<script src="/assets/lib/axios/0.26.1/axios.min.js"></script>
<script src="/assets/javascripts/httpRequest.js"></script>
<script src="/assets/javascripts/localStorageUtils.js"></script>
<script>
// API地址
const APIHOST = '<%= global.site.api.prefix %>';

View File

@@ -16,8 +16,9 @@
</div>
</div>
<script>
if (localStorage.getItem("token"))
if (localStorageUtils.getLoginStatus()) {
$("#dashboard").html("后台");
}
function navbarHighlight() {
// 导航栏中突出当前页面