解决登录显示、首页显示bug
This commit is contained in:
@@ -27,8 +27,8 @@ const props = defineProps({
|
||||
const statusBarHeight = ref(0)
|
||||
|
||||
try {
|
||||
const systemInfo = uni.getSystemInfoSync()
|
||||
statusBarHeight.value = systemInfo.statusBarHeight
|
||||
const windowInfo = uni.getWindowInfo()
|
||||
statusBarHeight.value = windowInfo.statusBarHeight
|
||||
} catch (error) {
|
||||
statusBarHeight.value = 20
|
||||
}
|
||||
@@ -60,6 +60,16 @@ function goBack() {
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
props.fallbackUrl == '/pages/mall/delivery/home/index' ||
|
||||
props.fallbackUrl == '/pages/mall/delivery/orders/index' ||
|
||||
props.fallbackUrl == '/pages/mall/delivery/messages/index' ||
|
||||
props.fallbackUrl == '/pages/mall/delivery/profile/index'
|
||||
) {
|
||||
uni.switchTab({ url: props.fallbackUrl })
|
||||
return
|
||||
}
|
||||
|
||||
uni.redirectTo({ url: props.fallbackUrl })
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user