From 91358ad7b723b059a01275c3c35472e849ff4ce9 Mon Sep 17 00:00:00 2001 From: Benny Guo Date: Mon, 24 Jul 2023 08:34:15 +0800 Subject: [PATCH] fix: recent comment is not hiding with correct setting --- src/views/Home.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index bfe671cd..77c17631 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -228,11 +228,10 @@ export default defineComponent({ }), recentCommentEnable: computed(() => { return ( - (appStore.themeConfig.plugins.gitalk.enable && - appStore.themeConfig.plugins.gitalk.recentComment) || - (!appStore.themeConfig.plugins.gitalk.enable && - appStore.themeConfig.plugins.valine.enable && - appStore.themeConfig.plugins.valine.recentComment) + (!!appStore.themeConfig.plugins.gitalk.enable && + !!appStore.themeConfig.plugins.gitalk.recentComment) || + (!!appStore.themeConfig.plugins.valine.enable && + !!appStore.themeConfig.plugins.valine.recentComment) ) }), expanderClass,