diff --git a/themes/vue/_config.yml b/themes/vue/_config.yml index 91848196d..d1e86defa 100644 --- a/themes/vue/_config.yml +++ b/themes/vue/_config.yml @@ -1,7 +1,6 @@ site_description: Vue.js - The Progressive JavaScript Framework google_analytics: UA-46852172-3 -# TODO: update when v3 becomes the main docsite? -root_domain: cn.vuejs.org +root_domain: v2.cn.vuejs.org vue_version: 2.7.10 # START SPONSORS special: diff --git a/themes/vue/layout/layout.ejs b/themes/vue/layout/layout.ejs index ace1c60e3..7c9e43d50 100644 --- a/themes/vue/layout/layout.ejs +++ b/themes/vue/layout/layout.ejs @@ -11,8 +11,8 @@ - - + + diff --git a/themes/vue/source/js/common.js b/themes/vue/source/js/common.js index 9a0211065..18d487442 100644 --- a/themes/vue/source/js/common.js +++ b/themes/vue/source/js/common.js @@ -334,10 +334,9 @@ // function: special logic for cn function getVersionOrigin (version) { - // TODO: update when v3 becomes the main docsite var originMap = { - 'v3': 'https://v3.cn.vuejs.org/', - 'SELF': 'https://cn.vuejs.org/', + 'v3': 'https://cn.vuejs.org/', + 'SELF': 'https://v2.cn.vuejs.org/', 'v1': 'https://v1-cn.vuejs.org/', '012': 'https://012-cn.vuejs.org/' }