mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: User Login
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user