This commit is contained in:
Vaica committed 2026-06-22 13:01:37 +08:00
1 parent f99ddec735
commit 8cd35ca127
9 files changed
+263 -45

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ export default function EditPostPage({
const res = await fetch("/api/hugo");
const data = await res.json();
if (data.running) {
window.open(`/preview/${post.frontMatter.slug}.html`, "_blank");
window.open(`${location.protocol}//${location.hostname}:1313/${post.frontMatter.slug}.html`, "_blank");
} else {
alert("Hugo 预览启动失败");
}