Skip to content

Commit 14ea277

Browse files
author
QM303176530
committed
增加侧边栏配置其他网站功能(name以:http://开头或者https://开头即可)
1 parent 012f256 commit 14ea277

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ export default {
4646
}
4747
});
4848
if (index === this.$route.name) return;
49-
this.$router.push({ name: index, query, params });
49+
if (index.indexOf("http://") > -1 || index.indexOf("https://") > -1) {
50+
window.open(index);
51+
} else {
52+
this.$router.push({ name: index, query, params });
53+
}
5054
}
5155
},
5256
computed: {

0 commit comments

Comments
 (0)