fix useI18nMd bug

This commit is contained in:
Gabe Yuan
2023-08-15 13:34:09 +08:00
parent 01a27e5b14
commit 9b038ad303

View File

@@ -14,6 +14,6 @@ export const useI18n = () => {
export const useI18nMd = (key) => {
const i18n = useI18n();
const fileName = i18n(key);
const url = fileName ?? `${URL_RAW_PREFIX}/${fileName}`;
const url = fileName ? `${URL_RAW_PREFIX}/${fileName}` : "";
return useFetch(url);
};