From 55693b0f4028bd2fa3ca27bf10c9687d62a6d67d Mon Sep 17 00:00:00 2001 From: yanglbme Date: Thu, 23 Jan 2025 09:12:24 +0800 Subject: [PATCH] fix: replace --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index bb8074394..0b72e8d48 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -187,7 +187,7 @@ export function exportHTML(primaryColor: string) { setStyles(element) const htmlStr = element.innerHTML - .replace(`var(--md-primary-color)`, primaryColor) + .replace(/var\(--md-primary-color\)/g, primaryColor) .replace(/--md-primary-color:.+?;/g, ``) const downLink = document.createElement(`a`)