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

如何再路由中设置,不要再页面中设置 #40

Closed
changlin0501 opened this issue Apr 26, 2022 · 11 comments
Closed

如何再路由中设置,不要再页面中设置 #40

changlin0501 opened this issue Apr 26, 2022 · 11 comments
Labels
usage Usage of something.

Comments

@changlin0501
Copy link

image

我的每个页面都有导出,所以我想再路由中使用多标签,请问该如何处理

@yunsii
Copy link
Owner

yunsii commented Apr 26, 2022

我都看不懂你这个提问……

@changlin0501
Copy link
Author

我都看不懂你这个提问……
就是在page使用的时候能不能在其他地方实现,不用export default 去实现

@yunsii
Copy link
Owner

yunsii commented Apr 27, 2022

说得还是不明确,路由配置只是指定文件路径,文件在哪儿都可以,不知道是不是这个意思?

@changlin0501
Copy link
Author

说得还是不明确,路由配置只是指定文件路径,文件在哪儿都可以,不知道是不是这个意思?

就是我将所有配置都配置好了,就差使用了,在页面使用时怎么都出现不了多标签 ,另外我想问问这种模式该处理使用呢:
基于路由,每个路由只渲染一个标签页

@yunsii
Copy link
Owner

yunsii commented Apr 27, 2022

默认就是这个模式,你是已有项目集成还是基于我这个项目的?

@yunsii yunsii added the usage Usage of something. label Apr 27, 2022
@changlin0501
Copy link
Author

已有项目集成呢

@yunsii
Copy link
Owner

yunsii commented Apr 27, 2022

那还得看你是不是 ant design pro v5 了,这个需要加个 layout 层来拦截路由的,建议你搞个最小化的 demo 我可以帮你看看。

@changlin0501
Copy link
Author

我是antd design pro V4

@yunsii
Copy link
Owner

yunsii commented Apr 27, 2022

https://github.com/yunsii/ant-design-pro-plus/blob/v4-legacy/src/layouts/BasicLayout.tsx#L172 没有最小化 demo 的话,我只能说看看 v4-legacy 分支的实现了。

@changlin0501
Copy link
Author

https://github.com/yunsii/ant-design-pro-plus/blob/v4-legacy/src/layouts/BasicLayout.tsx#L172 没有最小化 demo 的话,我只能说看看 v4-legacy 分支的实现了。

好的,我再看看,如有问题再向你请教,感谢

@yunsii yunsii closed this as completed Apr 28, 2022
@changlin0501
Copy link
Author

changlin0501 commented Apr 28, 2022 via email

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

No branches or pull requests

2 participants