🚸 处理标题可能为空的情况

This commit is contained in:
BTMuli
2026-02-27 11:46:11 +08:00
parent 2a84e25f4a
commit d6dbddaf87
2 changed files with 7 additions and 3 deletions

View File

@@ -279,7 +279,10 @@ onUnmounted(() => {
async function openJson(): Promise<void> {
// @ts-expect-error import.meta
if (import.meta.env.MODE === "production") return;
if (import.meta.env.MODE === "production") {
await toPost();
return;
}
await createPostJson(postId);
}