From c2463c02a17f92df55ec77ed2da3fb724290c072 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 17:34:30 +0800
Subject: [PATCH] fix: bug
---
apps/bMiniApp/src/components/Layout/PageLayout.vue | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/apps/bMiniApp/src/components/Layout/PageLayout.vue b/apps/bMiniApp/src/components/Layout/PageLayout.vue
index 7149940..24bff3f 100644
--- a/apps/bMiniApp/src/components/Layout/PageLayout.vue
+++ b/apps/bMiniApp/src/components/Layout/PageLayout.vue
@@ -44,7 +44,7 @@
import { commonNavigationBarProps } from '../NavigationBar/commonNavigationBar';
import { useSystemStore } from '@/stores/modules/system';
import Taro from '@tarojs/taro';
-import { TabBarPageRouter } from '@/constants';
+import { TabBarPageRouterList } from '@/constants';
import { useAuth } from '@/hooks';
import { Portal } from 'senin-mini/components';
import { usePickProps } from 'senin-mini/hooks';
@@ -89,7 +89,7 @@
const router = Taro.useRouter();
const pageHeightWithTabBar = computed(() =>
- Object.values(TabBarPageRouter).some((x) => x.toLowerCase() === router.path.toLowerCase())
+ TabBarPageRouterList.some((x) => x.toLowerCase() === router.path.toLowerCase())
);
const navigationBarHeight = computed(
@@ -102,16 +102,6 @@
: systemStore.pageHeight;
pageHeight = pageHeight + (props.showNavigationBar ? 0 : navigationBarHeight.value);
return pageHeight + 'px';
-});
-
-Taro.getSetting({
- success: function (res) {
- if (!res.authSetting['scope.userLocation']) {
- Taro.authorize({
- scope: 'scope.userLocation',
- });
- }
- },
});
</script>
--
Gitblit v1.9.1