【fix】修复外部连接无法访问的问题
This commit is contained in:
@@ -111,10 +111,9 @@ function generateChildRouters (data) {
|
|||||||
}else{
|
}else{
|
||||||
component = "views/"+item.component;
|
component = "views/"+item.component;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
let URL = (item.meta.url|| '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2)) // URL支持{{ window.xxx }}占位符变量
|
let URL = (item.meta.url|| '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2)) // URL支持{{ window.xxx }}占位符变量
|
||||||
if (isURL(URL)) {
|
if (isURL(URL) || (item.meta.url && item.meta.url.indexOf("{{") == 0)) {
|
||||||
item.meta.url = URL;
|
item.meta.url = URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user