1301
This commit is contained in:
1 parent
f99ddec735
commit
8cd35ca127
9 files changed
+263
-45
No files matched your search
@@ -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 预览启动失败");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user