From c02e7a8fe42de2a5796e95e573f9e6b6735e4d0d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 25 三月 2025 17:06:43 +0800
Subject: [PATCH] fix: 四期需求
---
apps/taro/src/app.config.ts | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/apps/taro/src/app.config.ts b/apps/taro/src/app.config.ts
index 78bdba1..e1768bf 100644
--- a/apps/taro/src/app.config.ts
+++ b/apps/taro/src/app.config.ts
@@ -1,3 +1,32 @@
+console.log('process.env.TARO_ENV', process.env.TARO_ENV);
+
+const tabberConifg =
+ process.env.TARO_ENV === 'h5'
+ ? ({} as any)
+ : {
+ tabBar: {
+ list: [
+ {
+ pagePath: 'pages/home/index',
+ iconPath: 'assets/tabbar/icon-home.png',
+ selectedIconPath: 'assets/tabbar/icon-home-active.png',
+ text: '棣栭〉',
+ },
+ {
+ pagePath: 'pages/mine/index',
+ iconPath: 'assets/tabbar/icon-mine.png',
+ selectedIconPath: 'assets/tabbar/icon-mine-active.png',
+ text: '鎴戠殑',
+ },
+ ],
+ color: '#333',
+ selectedColor: '#3a71ff',
+ backgroundColor: '#fff',
+ borderStyle: 'black',
+ custom: true,
+ },
+ };
+
export default defineAppConfig({
entryPagePath: 'pages/home/index',
pages: ['pages/home/index', 'pages/mine/index'],
@@ -80,6 +109,10 @@
'editElectricUserAccount/editElectricUserAccount',
],
},
+ {
+ root: 'subpackages/my',
+ pages: ['shareQrcode/shareQrcode', 'dashboard/dashboard'],
+ },
],
// preloadRule: {
// 'pages/mine/index': {
--
Gitblit v1.9.1