feat: 提交首页
This commit is contained in:
@ -66,25 +66,26 @@
|
||||
},
|
||||
toDetail(item) {
|
||||
let type = ""
|
||||
if (item.deviceType.includes("pcs")) {
|
||||
if (item.deviceType?.includes("pcs")) {
|
||||
type = "pcs";
|
||||
} else if (item.deviceType.includes("stack") ) {
|
||||
} else if (item.deviceType?.includes("stack") ) {
|
||||
type = "cluster";
|
||||
} else if (item.deviceType.includes("bms") && this.stationId === 349 ) {
|
||||
} else if (item.deviceType?.includes("bms") && this.stationId === 349 ) {
|
||||
type = "stack";
|
||||
} else if (item.deviceType.includes("pack")) {
|
||||
} else if (item.deviceType?.includes("pack")) {
|
||||
type = "pack";
|
||||
} else if (item.deviceType.includes("air_condition")) {
|
||||
} else if (item.deviceType?.includes("air_condition")) {
|
||||
type = "air";
|
||||
} else if (item.deviceType.includes("ele_meter") ) {
|
||||
} else if (item.deviceType?.includes("ele_meter") ) {
|
||||
type = "ammeter";
|
||||
} else if (item.deviceType.includes("emu" )) {
|
||||
} else if (item.deviceType?.includes("emu" )) {
|
||||
type = "emu";
|
||||
} else if (item.deviceType.includes("storage_fire") ) {
|
||||
} else if (item.deviceType?.includes("storage_fire") ) {
|
||||
type = "storage";
|
||||
} else if (item.deviceType.includes("basic") ) {
|
||||
} else if (item.deviceType?.includes("basic") ) {
|
||||
type = "anything"
|
||||
}
|
||||
console.log(type)
|
||||
if (type) {
|
||||
uni.setStorage({
|
||||
key: 'deviceName', //本地缓存中的指定的 key
|
||||
|
||||
Reference in New Issue
Block a user