全局搜索

This commit is contained in:
a0049873 2022-12-07 10:16:31 +08:00
parent cfcf580da2
commit 42c3ce4525
1 changed files with 11 additions and 1 deletions

View File

@ -1272,7 +1272,17 @@
if (Cardsname.value === arr[0] && arr[0] == '基础设施') {
getAppResources2()
} else {
let newQuery = JSON.parse(
JSON.stringify(router.currentRoute.value.query)
)
newQuery.str = searchValue.value
router
.replace({
query: newQuery,
})
.then(() => {
changeCards(arr[0])
})
}
if (!mapFlag) {
return