update:优化设备缓存逻辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user