diff --git a/src/common/basic.js b/src/common/basic.js index fdfbd74e..cbb8e251 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -343,9 +343,7 @@ export function getInspectReasonList(value) { export function getSwitchInfoByCode(code) { var isCheck = false var resultInfo = "" - if (switchList.length == 0) { - switchList = uni.getStorageSync("switch") - } + switchList = uni.getStorageSync("switch") for (let item of switchList) { if (item.code == code) {