plugin.ts中使用modifyRoutes后对应路由url中是本地路径,大佬们指导一下 #1994
Answered
by
PeachScript
taiyangzaitianshang
asked this question in
Q&A
-
changelog.zh-CN.md在根目录,想通过约定式路由 docs/changelog-cn访问,在plugin下使用了如下API: 但是部署后点击导航有如下错误: 红框中的路径是本地绝对路径,dev的时候能正常导航(因为本地路径是对的) 请问大佬,是不是还需要其他配置呀 |
Beta Was this translation helpful? Give feedback.
Answered by
PeachScript
Dec 27, 2023
Replies: 1 comment 1 reply
-
可能和 winPath 有关系,但建议用 embed 引用根目录的 changelog 而不是改路由表:https://d.umijs.org/guide/markdown#embed |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
taiyangzaitianshang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可能和 winPath 有关系,但建议用 embed 引用根目录的 changelog 而不是改路由表:https://d.umijs.org/guide/markdown#embed