Commit 64fd975d authored by 刘斌's avatar 刘斌

fix: 完善路由路径

parent 7d66d8a4
......@@ -46,7 +46,7 @@ function backMenuToVbenMenu(
// 替换 '/src' 为 '../views'
// componentPath = match[1].replace('/src', '..');
componentPath = meta?.componentPath
? meta.componentPath.replace('#/', '..')
? meta.componentPath.replace('#/', '../')
: match[1].replace('/src', '..');
if (componentPath.includes('?t=')) {
componentPath = componentPath.split('?')[0] || '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment