update:优化设备缓存逻辑

This commit is contained in:
2026-06-11 18:10:59 +08:00
parent bfdd40ec93
commit 5cf243d187
6 changed files with 55 additions and 6 deletions

View File

@@ -137,6 +137,10 @@ export default defineStore("store", {
this.device.deviceId = deviceId;
this.device.deviceName = deviceName;
},
clearDevice() {
this.device = getDefaultDevice();
this.online = false;
},
async updateConfig(config) {
this.config = config;
if (this.user.scores !== undefined) {