diff --git a/miniprogram/components/app-safe-header.vue b/miniprogram/components/app-safe-header.vue index e6fe072ff..ee3cf77b1 100644 --- a/miniprogram/components/app-safe-header.vue +++ b/miniprogram/components/app-safe-header.vue @@ -17,7 +17,7 @@ diff --git a/miniprogram/components/bx-ui/bx-placeholder-page.vue b/miniprogram/components/bx-ui/bx-placeholder-page.vue index a5f942705..aa788e7fd 100644 --- a/miniprogram/components/bx-ui/bx-placeholder-page.vue +++ b/miniprogram/components/bx-ui/bx-placeholder-page.vue @@ -2,6 +2,9 @@ import { computed } from 'vue' import { onLoad } from '@dcloudio/uni-app' import { PAGE_PATHS } from '@/config/api' +import { getSafeAreaStyle } from '@/utils/safeArea' + +const safeAreaStyle = getSafeAreaStyle() const props = defineProps({ defaultTitle: { type: String, default: '报销业务' } @@ -11,7 +14,7 @@ const title = computed(() => props.defaultTitle) const goBack = () => { uni.navigateBack({ - fail: () => uni.switchTab({ url: PAGE_PATHS.workbench }) + fail: () => uni.reLaunch({ url: PAGE_PATHS.workbench }) }) } @@ -20,7 +23,7 @@ onLoad(() => {})