|
|
@ -104,15 +104,17 @@ const ejectModalVisible = ref(false) |
|
|
|
|
|
|
|
const handleModalVisible = () => { |
|
|
|
ejectModalVisible.value = false |
|
|
|
changeTab(1) |
|
|
|
tabStore.updateActiveTab(tabStore.preActiveTab) |
|
|
|
} |
|
|
|
const changeTab = index => { |
|
|
|
tabStore.updateActiveTab(index) |
|
|
|
if (index == 1) { |
|
|
|
router.push('/') |
|
|
|
tabStore.updatePreActiveTab(1) |
|
|
|
} |
|
|
|
if (index == 2) { |
|
|
|
router.push('/test') |
|
|
|
tabStore.updatePreActiveTab(2) |
|
|
|
} |
|
|
|
if (index == 3) { |
|
|
|
ejectModalVisible.value = true |
|
|
|