提交 3db9f79d 编写于 作者: D DCloud_LXH

chore: remove setTabBarItem reject

上级 50b1697c
...@@ -50,9 +50,6 @@ export const setTabBarItem = defineAsyncApi<API_TYPE_SET_TAB_BAR_ITEM>( ...@@ -50,9 +50,6 @@ export const setTabBarItem = defineAsyncApi<API_TYPE_SET_TAB_BAR_ITEM>(
{ index, text, iconPath, selectedIconPath, pagePath, visible }, { index, text, iconPath, selectedIconPath, pagePath, visible },
{ resolve, reject } { resolve, reject }
) => { ) => {
if (!isTabBarPage()) {
return reject('not TabBar page')
}
tabBar.setTabBarItem(index, text, iconPath, selectedIconPath, visible) tabBar.setTabBarItem(index, text, iconPath, selectedIconPath, visible)
const route = pagePath && __uniRoutes.find(({ path }) => path === pagePath) const route = pagePath && __uniRoutes.find(({ path }) => path === pagePath)
if (route) { if (route) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册