规范:统一自有源码中文注释和中文提交约定

This commit is contained in:
cieanyau committed 2026-11-07 04:49:51 +08:00
1 parent bdb9b00b6e
commit 83b7484558
17 files changed
+39 -36

No files matched your search

+1 -1
View File
@@ -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);