mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-04 07:05:07 +08:00
🚸 处理标题可能为空的情况
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user