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

增加 iframe #3

Closed
HoneyJoe opened this issue Apr 26, 2023 · 5 comments
Closed

增加 iframe #3

HoneyJoe opened this issue Apr 26, 2023 · 5 comments

Comments

@HoneyJoe
Copy link

你好,如果想通过iframe,内嵌一个独立的模块 这个应该怎么设计呢?

@bigTig
Copy link
Owner

bigTig commented Apr 26, 2023

@HoneyJoe 可以举个栗子吗,没太理解你的想法,利用 router 配合 layout 来实现?

Repository owner deleted a comment from Kevin9505 Apr 26, 2023
@HoneyJoe
Copy link
Author

抱歉、因为不是搞前端的,我的前端知识仅停留在生疏的jquery阶段,所以描述的不是很清楚。
需求:是搞一个通用的后台模版,可以引用其他项目编译好的前端文件,通过点击菜单动态加载进本项目。想到用iframe是便于模块分离,同时两个独立的项目样式不会受到彼此干扰。
例如:https://github.com/DTStack/Taier/blob/master/README_zh-CN.md 这个项目,我想单独打包编译,通过nginx配置等等 嵌入您开源的这个项目,通过点击左侧菜单的形式,展示该页面。

@HoneyJoe
Copy link
Author

@bigTig

@bigTig
Copy link
Owner

bigTig commented Apr 27, 2023

可参考下 hotfix/iframe 分支,是否符合 @HoneyJoe

@HoneyJoe
Copy link
Author

好的,我研究一下,感谢 🙏 @bigTig

@bigTig bigTig closed this as completed May 8, 2023
@bigTig bigTig pinned this issue May 10, 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

No branches or pull requests

2 participants