fix: 移動端未打開對話但提示對話不存在

This commit is contained in:
CrescentLeaf
2025-09-24 23:01:07 +08:00
parent 41362a591c
commit 4e38ad8e20

View File

@@ -57,7 +57,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC
target: target,
})
if (re.code != 200)
return checkApiSuccessOrSncakbar(re, "對話錯誤")
return target != '' && checkApiSuccessOrSncakbar(re, "對話錯誤")
setChatInfo(re.data as Chat)
await loadMore()