修复消息跳转tab显示不对问题
This commit is contained in:
parent
1382f22cb5
commit
177cc4e9c7
|
@ -29,9 +29,9 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
const apply = {
|
const apply = {
|
||||||
title: '我的申请',
|
title: '我的申请',
|
||||||
img: require('@/assets/personalCenter/apply.png'),
|
img: require('@/assets/personalCenter/apply.png'),
|
||||||
imgActive: require('@/assets/personalCenter/applyactive.png'),
|
imgActive: require('@/assets/personalCenter/applyactive.png'),
|
||||||
key: 'apply',
|
key: 'apply',
|
||||||
}
|
}
|
||||||
let menuList = [
|
let menuList = [
|
||||||
car,
|
car,
|
||||||
|
@ -76,6 +76,8 @@ export default defineComponent({
|
||||||
const type = JSON.parse(window.sessionStorage.getItem('type'))
|
const type = JSON.parse(window.sessionStorage.getItem('type'))
|
||||||
if (type) {
|
if (type) {
|
||||||
selectedKeys.value = [type]
|
selectedKeys.value = [type]
|
||||||
|
console.log('selectedKeys------------>', selectedKeys);
|
||||||
|
|
||||||
}
|
}
|
||||||
const handleClick = (item) => {
|
const handleClick = (item) => {
|
||||||
console.log('click', item)
|
console.log('click', item)
|
||||||
|
@ -83,10 +85,20 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (menuList[1]) {
|
if (itShowXiHaiAn) {
|
||||||
handleClick(menuList[1])
|
|
||||||
} else {
|
|
||||||
handleClick(menuList[0])
|
handleClick(menuList[0])
|
||||||
|
} else {
|
||||||
|
if (type) {
|
||||||
|
console.log('type---------->', type)
|
||||||
|
let _obj = menuList.find(v => v.key == type)
|
||||||
|
handleClick(_obj)
|
||||||
|
} else {
|
||||||
|
if (menuList[1]) {
|
||||||
|
handleClick(menuList[1])
|
||||||
|
}else {
|
||||||
|
handleClick(menuList[0])
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue