Merge branch 'tabbar' of github.com:feige996/unibest into tabbar

This commit is contained in:
feige996 2025-06-03 12:42:18 +08:00
commit d76a5baad9
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export default defineUniPages({
'z-paging/components/z-paging$1/z-paging$1.vue', 'z-paging/components/z-paging$1/z-paging$1.vue',
}, },
}, },
// 如果不需要tabBar可以注释掉这个配置,或者直接删除 // 如果不需要tabBar请使用 spa 模板。pnpm create xxx -t spa
tabBar: { tabBar: {
custom: true, custom: true,
color: '#999999', color: '#999999',

View File

@ -11,6 +11,8 @@ export const getLastPage = () => {
return pages[pages.length - 1] return pages[pages.length - 1]
} }
export const tabBarList = tabBar?.list || []
/** 判断当前页面是否是 tabbar 页 */ /** 判断当前页面是否是 tabbar 页 */
export const getIsTabbar = () => { export const getIsTabbar = () => {
try { try {