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

切换菜单时怎么添加loading #10902

Closed
baiwumm opened this issue Aug 22, 2023 · 2 comments
Closed

切换菜单时怎么添加loading #10902

baiwumm opened this issue Aug 22, 2023 · 2 comments
Labels

Comments

@baiwumm
Copy link

baiwumm commented Aug 22, 2023

🧐 问题描述 | Problem description

image

请问我该如何在切换菜单的时候添加一个 loading 状态

💻 示例代码 | Sample code

image

我尝试在这里添加,但是我该如何改变 initialState?.loading 的状态,从 true 改成 false?

🚑 其他信息 | Other information

线上地址: https://react.baiwumm.com/

OS:

Node:

浏览器 | browser:

@MRXLDL
Copy link

MRXLDL commented Sep 12, 2023

实现了吗? 同问...

@baiwumm
Copy link
Author

baiwumm commented Sep 12, 2023

实现了吗? 同问...

添加这个文件即可:https://github.com/baiwumm/Xmw-Admin/blob/Cyan/Xmw_web/src/loading.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants