mirror of
https://gitee.com/novel_dev_team/novel
synced 2026-07-20 17:52:45 +08:00
修复部分情况下,弹幕打开/关闭失败的bug
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
var token = localStorage.getItem("token");
|
||||
if (token) {
|
||||
$.get("/user/isLogin", { "token": token}, function (data) {
|
||||
if(data.code != 1){//未登录
|
||||
localStorage.removeItem("token");
|
||||
}})
|
||||
}
|
||||
Array.prototype.indexOf = function (val) {
|
||||
for (var i = 0; i < this.length; i++) {
|
||||
if (this[i] == val) return i;
|
||||
@@ -19,6 +12,15 @@ if (token) {
|
||||
}
|
||||
};
|
||||
|
||||
var token = localStorage.getItem("token");
|
||||
if (token) {
|
||||
$.get("/user/isLogin", {"token": token}, function (data) {
|
||||
if (data.code != 1) {//未登录
|
||||
localStorage.removeItem("token");
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function readHistory() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user