From 04ec4ad12b057f0dd5796cef6bfd967fa2ef62c6 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Wed, 9 Aug 2023 10:41:33 +0800 Subject: [PATCH] fix about page bug --- src/hooks/I18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/I18n.js b/src/hooks/I18n.js index d4e7684..a29ecf6 100644 --- a/src/hooks/I18n.js +++ b/src/hooks/I18n.js @@ -15,5 +15,5 @@ export const useI18nMd = (key) => { const i18n = useI18n(); const fileName = i18n(key); const url = `${URL_RAW_PREFIX}/${fileName}`; - return useFetch(url); + return useFetch(fileName ? url : ""); };