From 70ae4180f29e6cc02b68ce046c6cd744907c193d Mon Sep 17 00:00:00 2001 From: ReaJason Date: Thu, 14 Aug 2025 22:41:45 +0800 Subject: [PATCH] fix: router duplicated --- web/copy-build.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/copy-build.js b/web/copy-build.js index afade1e0..7d335cc8 100644 --- a/web/copy-build.js +++ b/web/copy-build.js @@ -58,11 +58,7 @@ async function main() { } const htmlContent = readFileSync(INDEX_SRC, "utf8"); - const updatedHtml = htmlContent - .replace(/href="([^"]*)"/g, 'th:href="@{$1}"') - .replace(/src="([^"]*)"/g, 'th:src="@{$1}"'); - - writeFileSync(INDEX_DEST, updatedHtml); + writeFileSync(INDEX_DEST, htmlContent); console.log("SpringBoot resources updated successfully"); }