Commit 6265a570 authored by 邓晓峰's avatar 邓晓峰

fix: 修复首页路由匹配

parent bd425463
Pipeline #42258 passed with stages
in 1 minute 47 seconds
......@@ -87,7 +87,7 @@ const generRotes = (widgets, parent, level = 0) => {
url = item.url
}
url = transformURL(url);
url = url.replace(/[(\\|)|(&)]widget=[0-9]*/, '')
//url = url.replace(/[(\\|)|(&)]widget=[0-9]*/, '')
const convertURL = item.icon && transformURL(item.icon.replace(/\s*/g, ''));
const icon = (item && item.icon && item.icon !== null &&
isAbsoluteURL(convertURL) ? convertURL: /(\\|\/)/.test(convertURL) ?
......
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