fix: 修复构建配置和运行时错误处理

This commit is contained in:
leonincs
2026-05-20 16:34:46 +08:00
parent 732e284369
commit 9c00e06b1f
18 changed files with 234 additions and 57 deletions

View File

@@ -11,11 +11,11 @@ function readStored(key: string): string | null {
}
function writeStored(key: string, value: string) {
localStorage.setItem(key, value)
try { localStorage.setItem(key, value) } catch {}
}
function removeStored(key: string) {
localStorage.removeItem(key)
try { localStorage.removeItem(key) } catch {}
}
export const useAuthStore = defineStore('auth', () => {