Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #103: 修复TabBar中route为空会导致app奔溃问题 #104

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

282931
Copy link
Contributor

@282931 282931 commented Oct 27, 2023

No description provided.

@282931 282931 changed the title fix#103: 修复TabBar中route为空会导致app奔溃问题 fix #103: 修复TabBar中route为空会导致app奔溃问题 Oct 27, 2023
maotoumao
maotoumao previously approved these changes Oct 27, 2023
Copy link
Owner

@maotoumao maotoumao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢帮忙修复~ 如果方便的话可以把路由为空时的返回改成<Empty />吗,这是工程里通用的空白兜底~

import Empty from '@/components/base/empty';

    // ... 
    if (!routes?.length) {
        return <Empty />;
    }

@maotoumao maotoumao merged commit f306e36 into maotoumao:master Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants