fix: 修复构建配置和运行时错误处理
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user