We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9670992 commit c2449f5Copy full SHA for c2449f5
antdv-demo/components/header.vue
@@ -64,6 +64,9 @@ export default {
64
this.value = val;
65
},
66
closeTopBanner() {},
67
+ changeVersion() {
68
+ location.href = `https://2x.antdv.com${this.$route.fullPath}`;
69
+ },
70
71
render() {
72
const name = this.name;
@@ -179,7 +182,7 @@ export default {
179
182
</a-button>
180
183
<a-select size="small" defaultValue={packageInfo.version} class="version">
181
184
<a-select-option value={packageInfo.version}>{packageInfo.version}</a-select-option>
- <a-select-option value="2.x" onClick={() => (location.href = 'https://2x.antdv.com')}>
185
+ <a-select-option value="2.x" onClick={this.changeVersion}>
186
2.x
187
</a-select-option>
188
</a-select>
0 commit comments