From 894e6bc9972d2f94a241345fe882ce7065c49f1e Mon Sep 17 00:00:00 2001 From: Godpu <908662421@qq.com> Date: Sun, 20 Sep 2020 15:15:24 +0800 Subject: [PATCH 1/2] fix: the isAlgoliaSearch set to boolean type --- src/.vuepress/theme/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.vuepress/theme/components/Navbar.vue b/src/.vuepress/theme/components/Navbar.vue index e5d209b34c..8eda08d018 100644 --- a/src/.vuepress/theme/components/Navbar.vue +++ b/src/.vuepress/theme/components/Navbar.vue @@ -68,7 +68,7 @@ export default { }, isAlgoliaSearch() { - return this.algolia && this.algolia.apiKey && this.algolia.indexName + return !!(this.algolia && this.algolia.apiKey && this.algolia.indexName) } }, From 53246cbf6446dccadaa4dd698927cc071a518b07 Mon Sep 17 00:00:00 2001 From: Godpu <908662421@qq.com> Date: Sun, 20 Sep 2020 15:34:12 +0800 Subject: [PATCH 2/2] fix: use searchBox when disabled algoliaSearchBox --- src/.vuepress/theme/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.vuepress/theme/components/Navbar.vue b/src/.vuepress/theme/components/Navbar.vue index 8eda08d018..98f7e84a53 100644 --- a/src/.vuepress/theme/components/Navbar.vue +++ b/src/.vuepress/theme/components/Navbar.vue @@ -26,7 +26,7 @@