From 5c56d773cdcc0909a0c0717099e67c6a4bfda1af Mon Sep 17 00:00:00 2001 From: hymbz Date: Wed, 25 Dec 2024 00:28:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E5=8F=91=E5=B8=83=E9=A1=B5=E5=A4=B1=E6=95=88=E5=90=8E?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E6=9B=BF=E6=8D=A2=E7=BD=91=E5=9D=80?= =?UTF-8?q?=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #208 --- src/rollup-plugin/siteUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup-plugin/siteUrl.ts b/src/rollup-plugin/siteUrl.ts index 0b01b756..b91adcdd 100644 --- a/src/rollup-plugin/siteUrl.ts +++ b/src/rollup-plugin/siteUrl.ts @@ -45,7 +45,7 @@ export const siteUrl: OutputPluginOption = { (_, name, other) => { if (!Reflect.has(siteUrlMap!, name)) { console.error(`未知站点: ${name}`); - return ''; + return other as string; } const list = siteUrlMap![name].filter((url) => URL.canParse(`https://${url}`),