Skip to content

Commit

Permalink
fix: 保存用户的时候需要清除 localStorage.removeItem("lastOffset");
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Sep 8, 2024
1 parent d429ca9 commit edb72ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 256 deletions.
256 changes: 0 additions & 256 deletions external_likeUser.js

This file was deleted.

1 change: 1 addition & 0 deletions index_likeUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
if (newSpecificUser) {
localStorage.setItem("specificUser", newSpecificUser);
localStorage.removeItem("specificUserPostList");
localStorage.removeItem("lastOffset");
specificUser = newSpecificUser;
console.log(
`新的specificUser已保存: ${specificUser},specificUserPostList已重置`
Expand Down
1 change: 1 addition & 0 deletions index_likeUser_activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
if (newSpecificUser) {
localStorage.setItem("specificUser", newSpecificUser);
localStorage.removeItem("specificUserPostList");
localStorage.removeItem("lastOffset");
specificUser = newSpecificUser;
console.log(
`新的specificUser已保存: ${specificUser},specificUserPostList已重置`
Expand Down

0 comments on commit edb72ac

Please sign in to comment.