规范:统一自有源码中文注释和中文提交约定
This commit is contained in:
1 parent
bdb9b00b6e
commit
83b7484558
17 files changed
+39
-36
No files matched your search
@@ -17,7 +17,7 @@ export default defineNuxtPlugin({
|
||||
(event.key !== null && event.key !== "jwt")
|
||||
)
|
||||
return;
|
||||
// Read the latest value: several storage events may already be queued.
|
||||
// 读取最新值:此时可能已有多个 storage 事件排队。
|
||||
const persisted = localStorage.getItem("jwt");
|
||||
if (persisted === auth.token) return;
|
||||
if (isValidJwt(persisted)) auth.prepareLogin().commit(persisted);
|
||||
|
||||
Reference in new issue
Block a user