全局搜索调整

This commit is contained in:
a0049873 2022-11-10 15:18:29 +08:00
parent 6abc05dcf6
commit 62b2091fd6
1 changed files with 2 additions and 8 deletions

View File

@ -1169,10 +1169,7 @@
str = searchValue.value.substring(0, 2)
r = re.test(str)
}
if (
(searchValue.value.length > 1 && r) ||
paramsGetResources.type === '基础设施'
) {
if (searchValue.value.length > 1 && r) {
flag = false
} else {
flag = true
@ -1300,10 +1297,7 @@
str = searchValue.value.substring(0, 2)
r = re.test(str)
}
if (
(searchValue.value.length > 1 && r) ||
paramsGetResources.type === '基础设施'
) {
if (searchValue.value.length > 1 && r) {
paramsGetResources.nonChinese = false
paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value