We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ab105 commit 4cba4a4Copy full SHA for 4cba4a4
frontend/src/stores/user.ts
@@ -75,14 +75,12 @@ export const UserStore = defineStore('user', {
75
keys.forEach(key => {
76
const dkey = key === 'uid' ? 'id' : key
77
const value = res_data[dkey]
78
-
79
if (key === 'exp' || key === 'time') {
80
this[key] = Number(value)
81
- wsCache.set('user.' + key, value)
82
} else {
83
this[key] = String(value)
84
85
}
+ wsCache.set('user.' + key, value)
86
})
87
88
this.setLanguage(this.language)
0 commit comments