1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export default {
methods: {
handleGetCode() {
const url =
"https://github.com/chuzhixin/vue-admin-beautiful/tree/master/src/views";
let path = this.$route.path + "/index.vue";
if (path === "/vab/menu1/menu1-1/menu1-1-1/index.vue") {
path = "/vab/nested/menu1/menu1-1/menu1-1-1/index.vue";
}
if (path === "/vab/icon/remixIcon/index.vue") {
path = "/vab/icon/index.vue";
}
if (path === "/vab/icon/remixIcon/index.vue") {
path = "/vab/icon/remixIcon.vue";
}
if (path === "/vab/icon/colorfulIcon/index.vue") {
path = "/vab/icon/colorfulIcon.vue";
}
if (path === "/vab/table/comprehensiveTable/index.vue") {
path = "/vab/table/index.vue";
}
if (path === "/vab/excel/exportExcel/index.vue") {
path = "/vab/excel/exportExcel.vue";
}
if (path === "/vab/excel/exportSelectedExcel/index.vue") {
path = "/vab/excel/exportSelectedExcel.vue";
}
if (path === "/vab/excel/exportMergeHeader/index.vue") {
path = "/vab/excel/exportMergeHeaderExcel.vue";
}
if (path === "/vab/excel/uploadExcel/index.vue") {
path = "/vab/excel/uploadExcel.vue";
}
window.open(url + path);
},
},
};