From 024d68d514ed9a5d0d7dd934186728ae58a4ac60 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 21 Feb 2022 17:39:11 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/theme/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue index 77c420339..554c45d3c 100644 --- a/docs/.vuepress/theme/components/Navbar.vue +++ b/docs/.vuepress/theme/components/Navbar.vue @@ -189,7 +189,7 @@ export default { forbidScroll(this.showMobilePanel) }, switchVersion () { - document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" + document.cookie = encodeURIComponent('__new_version') + "=__new_version; path=/" location.replace(location.origin + '?v=' + Date.now()) } }, -- GitLab