fix: router duplicated

This commit is contained in:
ReaJason
2025-08-14 22:41:45 +08:00
parent 2acafba2f3
commit e0385acf8b
+1 -5
View File
@@ -58,11 +58,7 @@ async function main() {
} }
const htmlContent = readFileSync(INDEX_SRC, "utf8"); const htmlContent = readFileSync(INDEX_SRC, "utf8");
const updatedHtml = htmlContent writeFileSync(INDEX_DEST, htmlContent);
.replace(/href="([^"]*)"/g, 'th:href="@{$1}"')
.replace(/src="([^"]*)"/g, 'th:src="@{$1}"');
writeFileSync(INDEX_DEST, updatedHtml);
console.log("SpringBoot resources updated successfully"); console.log("SpringBoot resources updated successfully");
} }