菜单路由配置支持内链访问

This commit is contained in:
RuoYi
2021-07-11 16:31:10 +08:00
parent c02dad2ca3
commit 5879c2484a
11 changed files with 125 additions and 10 deletions

View File

@ -70,9 +70,11 @@ export default {
this.show = false
},
change(val) {
const path = val.path;
if(this.ishttp(val.path)) {
// http(s):// 路径新窗口打开
window.open(val.path, "_blank");
const pindex = path.indexOf("http");
window.open(path.substr(pindex, path.length), "_blank");
} else {
this.$router.push(val.path)
}