Skip to content

Commit

Permalink
perf: update user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Jul 31, 2024
1 parent 2f89121 commit 50c2bce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ class User {
}

// 销毁登录状态
destroy() {
return $cms({
domain: __server,
})
.post("/account/logout")
async destroy() {
return $cms()
.post("api/cms/user/account/email/logout")
.finally(() => {
localStorage.removeItem("created_at");
localStorage.setItem("logged_in", "false");
Expand Down

0 comments on commit 50c2bce

Please sign in to comment.