fix: default match tab to match center

This commit is contained in:
hajimi
2026-08-01 16:14:37 +08:00
parent 5633c9b51f
commit 42284ba6ac
5 changed files with 17 additions and 26 deletions
-4
View File
@@ -13,7 +13,6 @@ import { computed, ref, watch, onMounted } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import AppLoading from '@/components/app-loading/app-loading.vue'
import GlobalPopup from '@/components/global-popup/global-popup.vue'
const MATCH_SHELL_VIEW_KEY = 'match_shell_view'
import UTabbar from '@/uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.vue'
const props = withDefaults(defineProps<{
@@ -151,9 +150,6 @@ const handleChange = (index: number) => {
uni.navigateTo({ url: targetRoute })
return
}
if (targetRoute === '/packages_match/pages/worldcup') {
uni.setStorageSync(MATCH_SHELL_VIEW_KEY, 'worldcup')
}
if (nativeTabbar.includes(targetRoute)) {
uni.switchTab({ url: targetRoute })
} else {