diff --git a/site/src/layouts/header/Menu.vue b/site/src/layouts/header/Menu.vue index ed36233fa..df0528581 100644 --- a/site/src/layouts/header/Menu.vue +++ b/site/src/layouts/header/Menu.vue @@ -12,6 +12,7 @@ :default-value="antdVersion" > {{ antdVersion }} + 3.x 2.x (Not Recommended) @@ -69,7 +70,12 @@ export default defineComponent({ ); }; - const changeVersion = v => { + const changeVersion = (v: string) => { + if (v === '3x') { + // TODO: 3.x site + location.href = `https://antdv.com${route.fullPath}`; + return; + } location.href = `https://${v}.antdv.com${route.fullPath}`; }; return {