通过iframe将文档嵌入其他页面,右侧文档目录结构无法显示,如何解决 #935
-
通过rspress搭建一个文档网站,并基于iframe方式嵌入已有的vue3工程内,访问文档正常,但是文档右侧的目录树无法展示。 |
Beta Was this translation helpful? Give feedback.
Answered by
Timeless0911
Apr 11, 2024
Replies: 1 comment 1 reply
-
This is the default behavior when you use iframe, you can see the logic in rspress/packages/theme-default/src/logic/useUISwitch.ts Lines 25 to 33 in 16b37fb The frontMatter config in pages or the themeConfig for all have a higher priority to control the display of aside component, you can set it on your own. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wanglilin0628
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the default behavior when you use iframe, you can see the logic in
rspress/packages/theme-default/src/logic/useUISwitch.ts
Lines 25 to 33 in 16b37fb
The frontMatter config in pages or the themeConfig for all have a higher priority to control the display of aside component, you can set it on your own.