支持hash router
kl-nevermore opened this issue · comments
kl.nevermore commented
使用hashRouter时候使用pathname匹配不到
liyuntong2016 commented
// 假设路径为/examples/#/list
// 此时只需要配置EasyDoc.json里的match为 /examples\/#\/list 即可匹配
// 原理如下
new RegExp(`^/examples/#/list$`).test('/examples/#/list') // true