diff --git a/pages/home-page/device-list/index.vue b/pages/home-page/device-list/index.vue index bc3beb6..005e95c 100644 --- a/pages/home-page/device-list/index.vue +++ b/pages/home-page/device-list/index.vue @@ -84,8 +84,10 @@ type = "storage"; } else if (item.deviceType?.includes("basic") ) { type = "anything" + } else { + type = "pcs"; } - console.log(type) + if (type) { uni.setStorage({ key: 'deviceName', //本地缓存中的指定的 key