修复应用领域不能选中bug
This commit is contained in:
parent
4a2e8f4a62
commit
99f962c74f
|
@ -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,16 +818,15 @@ 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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue