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

This commit is contained in:
RuoYi
2021-07-11 19:30:24 +08:00
parent e14fb70c26
commit 114c9f3af6
9 changed files with 123 additions and 8 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)
}