feat: navbar 图标加圆形背景色

This commit is contained in:
Burt
2024-01-09 09:05:26 +08:00
parent 562566ea74
commit c75a17375a
4 changed files with 25 additions and 6 deletions

View File

@@ -4,10 +4,11 @@ console.log(pagesJson)
/** 判断当前页面是否是tabbar页 */
export const getIsTabbar = () => {
if (!pagesJson.tabBar) {
if (!pagesJson.tabBar || !pagesJson.tabBar.list.length) {
return false
}
const pages = getCurrentPages()
const currPath = pages.at(-1).route
console.log(currPath)
return !!pagesJson.tabBar.list.find((e) => e.pagePath === currPath)
}