diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue index ca439cfdca0886eece00a7a8da500679fbfeb009..985bb46f3aefeb2078027acb8931c2401b48cdd8 100644 --- a/docs/.vuepress/theme/components/Navbar.vue +++ b/docs/.vuepress/theme/components/Navbar.vue @@ -189,8 +189,8 @@ export default { forbidScroll(this.showMobilePanel) }, switchVersion () { - // document.cookie = encodeURIComponent('__new_version') + "=__new_version; path=/" - document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" + document.cookie = encodeURIComponent('__old_version') + "=__old_version; path=/" + // document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" location.replace(location.origin + '?v=' + Date.now()) } },