()
| 202 | this.platformInfo = info |
| 203 | }, |
| 204 | clear() { |
| 205 | const keys: string[] = [ |
| 206 | 'token', |
| 207 | 'uid', |
| 208 | 'account', |
| 209 | 'name', |
| 210 | 'oid', |
| 211 | 'language', |
| 212 | 'exp', |
| 213 | 'time', |
| 214 | 'weight', |
| 215 | 'origin', |
| 216 | 'platformInfo', |
| 217 | ] |
| 218 | keys.forEach((key) => wsCache.delete('user.' + key)) |
| 219 | this.$reset() |
| 220 | }, |
| 221 | }, |
| 222 | }) |
| 223 |