Browse Source

增加侧边栏配置其他网站功能(name以:http://开头或者https://开头即可

main
QM303176530 4 years ago
parent
commit
9bac9fb29a
  1. 4
      web/src/view/layout/aside/index.vue

4
web/src/view/layout/aside/index.vue

@ -46,8 +46,12 @@ export default {
}
});
if (index === this.$route.name) return;
if (index.indexOf("http://") > -1 || index.indexOf("https://") > -1) {
window.open(index);
} else {
this.$router.push({ name: index, query, params });
}
}
},
computed: {
...mapGetters("router", ["asyncRouters"])

Loading…
Cancel
Save