We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v0.14.0
下方是修复之后的 resolveMatchingConfig 方法
resolveMatchingConfig
export function resolveMatchingConfig (route, config) { if (Array.isArray(config)) { return { base: '/', config: config } } for (const base in config) { const encodeBase = encodeURI(base) if (ensureEndingSlash(route.path).indexOf(encodeBase) === 0) { return { base, config: config[base] } } } return {} }
route 中的 path 是经过编码的 config 中的 base 没有编码 所以匹配不上,返回了空数组,也就是侧边栏为空了 加了一个 encodeURI 编码的逻辑就正常显示侧边栏了
route
path
config
base
encodeURI
The text was updated successfully, but these errors were encountered:
Thanks and contribution welcome!
Sorry, something went wrong.
'/docs/wiki/blog.wiki/vim配置', if the page file name has some Chinese ,then the side render will fail
285b368
No branches or pull requests
Bug report
Version
v0.14.0
Steps to reproduce
下方是修复之后的
resolveMatchingConfig
方法route
中的path
是经过编码的config
中的base
没有编码所以匹配不上,返回了空数组,也就是侧边栏为空了
加了一个
encodeURI
编码的逻辑就正常显示侧边栏了The text was updated successfully, but these errors were encountered: