From 4cba4a4a6361db69e7a2a9ca6cf352603c2df7ad Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 11 Jun 2025 14:47:40 +0800 Subject: [PATCH] perf: User Login --- frontend/src/stores/user.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/stores/user.ts b/frontend/src/stores/user.ts index 28c9ee58..39c262cd 100644 --- a/frontend/src/stores/user.ts +++ b/frontend/src/stores/user.ts @@ -75,14 +75,12 @@ export const UserStore = defineStore('user', { keys.forEach(key => { const dkey = key === 'uid' ? 'id' : key const value = res_data[dkey] - if (key === 'exp' || key === 'time') { this[key] = Number(value) - wsCache.set('user.' + key, value) } else { this[key] = String(value) - wsCache.set('user.' + key, value) } + wsCache.set('user.' + key, value) }) this.setLanguage(this.language)