提交 fd3134d3 编写于 作者: d-u-a's avatar d-u-a

fix(i18n:H5): pages.json 中不含 tabbar 属性时报错的问题

上级 b8150070
......@@ -33,7 +33,7 @@ export function initPullToRefreshI18n(
}
export function initTabBarI18n(tabBar: UniApp.TabBarOptions) {
if (isEnableLocale()) {
if (isEnableLocale() && tabBar.list) {
tabBar.list.forEach((item) => {
defineI18nProperty(item, ['text'])
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册