From 61e642b50f51ba83bfb64f88bac7b2038fada08c Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Thu, 3 Nov 2022 16:03:26 +0800 Subject: [PATCH] fix(h5): darkmode tabBar list --- src/platforms/h5/components/app/observable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platforms/h5/components/app/observable.js b/src/platforms/h5/components/app/observable.js index 640e0c274..cd576ae36 100644 --- a/src/platforms/h5/components/app/observable.js +++ b/src/platforms/h5/components/app/observable.js @@ -13,6 +13,12 @@ onThemeChange(() => { __uniConfig.tabBar.color = tabBarStyle.color __uniConfig.tabBar.selectedColor = tabBarStyle.selectedColor __uniConfig.tabBar.blurEffect = tabBarStyle.blurEffect + if (tabBarStyle.list.length && __uniConfig.tabBar.list.length) { + tabBarStyle.list.forEach((item, index) => { + __uniConfig.tabBar.list[index].iconPath = item.iconPath + __uniConfig.tabBar.list[index].selectedIconPath = item.selectedIconPath + }) + } }) export const tabBar = __uniConfig.tabBar -- GitLab