修复应用领域不能选中bug

This commit is contained in:
guoyue 2022-11-04 17:00:45 +08:00
parent 4a2e8f4a62
commit 99f962c74f
1 changed files with 10 additions and 8 deletions

View File

@ -495,8 +495,8 @@ export default defineComponent({
DETAIL_PAGE_CONTENT_DEFAULT_TAB
console.log('select------------>', select)
// selectSubType...
const selectSubType = router.currentRoute.value.query.type || ''
const queryName = ref('')
let selectSubType = router.currentRoute.value.query.type || ''
let queryName = ref('')
const str = router.currentRoute.value.query.str
const searchValue = ref(str)
const searchType = ref(str)
@ -818,17 +818,16 @@ export default defineComponent({
console.log('val.selectedTags---123--------->', val.selectedTags);
let _index = val.selectedTags.findIndex(v => v == selectSubType)
val.selectedTags.splice(_index, 1, selectSubType)
changeShrink(queryName.value)
// changeShrink(queryName.value)
// val.selectedTags &&
// val.selectedTags.splice(
// val.selectedTags.indexOf(selectSubType),
// 1
// )
}
} else {
if (val.name == '应用领域' && val.selectedTags.length > 0) {
changeShrink(val.name)
}
if(val.name == '应用领域' && val.selectedTags.length > 0) {
changeShrink(queryName.value)
}
}
})
@ -1457,6 +1456,9 @@ export default defineComponent({
router.currentRoute.value.query.appLiCation = ''
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
//
storageSearchInfo = null
selectSubType = ''
let newQuery = JSON.parse(
JSON.stringify(router.currentRoute.value.query)
)