diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue index fb6c42cb1fa1fadd2fb12d815bfc302d48a03ec0..94be3351ad3e4922a41d75b9c3f11f54b56b41d5 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 = '__new_version=;expires=-1' - location.replace(location.origin) + document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" + location.replace(location.origin + '?v=' + Date.now()) } }, diff --git a/docs/.vuepress/theme/components/SiderBarBottom.vue b/docs/.vuepress/theme/components/SiderBarBottom.vue index 64512a02bfec643f9aec7c77bb2794f338fb48e2..5e4db272952c48a8a01e78821374176f9173bcf8 100644 --- a/docs/.vuepress/theme/components/SiderBarBottom.vue +++ b/docs/.vuepress/theme/components/SiderBarBottom.vue @@ -83,7 +83,7 @@ computed: { currentConfig() { - return this.siderbarConfig[this.customNavBarKeys[this.navConfig.userNavIndex]]; + return this.siderbarConfig[this.customNavBarKeys[this.navConfig.userNavIndex]] || {}; }, currentQQGroup() { return [...(this.currentConfig.qq_group || [])].reverse(); diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index 26a98a722d34763bcaadcbcb9a7a395549535054..72b9e1644d71b1cd6b9d26a85f15c91ec15a9e25 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -15,18 +15,20 @@ @click="toggleSidebar(false)" /> - - - - + + + + + +