From 2bbf0f78cf70ddff6359d188b1de825ee0619af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Mon, 9 Dec 2024 22:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20close=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vitepress-theme-async/composables/links.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitepress-theme-async/composables/links.data.ts b/packages/vitepress-theme-async/composables/links.data.ts index 7120e14..2a765f1 100644 --- a/packages/vitepress-theme-async/composables/links.data.ts +++ b/packages/vitepress-theme-async/composables/links.data.ts @@ -12,7 +12,7 @@ export default { async load() { if (isString(theme.links) && /^(http[s]{0,1}):\/\//g.test(theme.links)) { return (await fetch(theme.links)).json(); - } else if (Array.isArray(theme.links)) { + } else { return Array.isArray(theme.links) ? theme.links : []; } },