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