From d453bda1104c8704fa75440427c5244b8c1e341d Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 24 Jul 2023 11:34:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=A8=AA=E5=90=91=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=BA=A2=E5=87=BA=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/medium/index.js | 4 ++-- themes/next/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/medium/index.js b/themes/medium/index.js index ae1c34f2..72b27314 100644 --- a/themes/medium/index.js +++ b/themes/medium/index.js @@ -78,9 +78,9 @@ const LayoutBase = props => { appear={true} enter="transition ease-in-out duration-700 transform order-first" enterFrom="opacity-0 translate-y-16" - enterTo="opacity-100 translate-y-0" + enterTo="opacity-100" leave="transition ease-in-out duration-300 transform" - leaveFrom="opacity-100 translate-y-0" + leaveFrom="opacity-100" leaveTo="opacity-0 -translate-y-16" unmount={false} > diff --git a/themes/next/index.js b/themes/next/index.js index c59c7279..931c7de7 100644 --- a/themes/next/index.js +++ b/themes/next/index.js @@ -95,9 +95,9 @@ const LayoutBase = (props) => { appear={true} enter="transition ease-in-out duration-700 transform order-first" enterFrom="opacity-0 translate-y-16" - enterTo="opacity-100 translate-y-0" + enterTo="opacity-100" leave="transition ease-in-out duration-300 transform" - leaveFrom="opacity-100 translate-y-0" + leaveFrom="opacity-100" leaveTo="opacity-0 -translate-y-16" unmount={false} > From eacfb51a0957991cb2029c8d62f9b52e19451cff Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 24 Jul 2023 11:45:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/global.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/global.js b/lib/global.js index 95c9614a..a080f270 100644 --- a/lib/global.js +++ b/lib/global.js @@ -72,7 +72,8 @@ export function GlobalContextProvider({ children }) { const currentIndex = THEMES.indexOf(theme) const newIndex = currentIndex < THEMES.length - 1 ? currentIndex + 1 : 0 const newTheme = THEMES[newIndex] - const query = { ...router.query, theme: newTheme } + const query = router.query + query.theme = newTheme router.push({ pathname: router.pathname, query }) return newTheme } From 3d8ce757129cd55d0237dc02a4b527d871110982 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 24 Jul 2023 11:51:33 +0800 Subject: [PATCH 3/3] =?UTF-8?q?heo=20fix=20=E9=9A=90=E8=97=8F=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E7=9A=84=E6=B7=B1=E8=89=B2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/heo/components/NavBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/heo/components/NavBar.js b/themes/heo/components/NavBar.js index 7bf3810f..820d94da 100644 --- a/themes/heo/components/NavBar.js +++ b/themes/heo/components/NavBar.js @@ -146,7 +146,7 @@ const NavBar = props => {
- {!JSON.parse(BLOG.THEME_SWITCH) && } + {!JSON.parse(BLOG.THEME_SWITCH) &&
} {/* 移动端菜单按钮 */}