We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dbe035 commit ae27d43Copy full SHA for ae27d43
site/src/layouts/header/Menu.vue
@@ -12,6 +12,7 @@
12
:default-value="antdVersion"
13
>
14
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
15
+ <a-select-option value="3.x" @click="changeVersion('3x')">3.x</a-select-option>
16
<a-select-option value="2.x" @click="changeVersion('2x')">
17
2.x (Not Recommended)
18
</a-select-option>
@@ -69,7 +70,12 @@ export default defineComponent({
69
70
);
71
};
72
- const changeVersion = v => {
73
+ const changeVersion = (v: string) => {
74
+ if (v === '3x') {
75
+ // TODO: 3.x site
76
+ location.href = `https://antdv.com${route.fullPath}`;
77
+ return;
78
+ }
79
location.href = `https://${v}.antdv.com${route.fullPath}`;
80
81
return {
0 commit comments