Support http

This commit is contained in:
zimplexing
2025-07-04 16:30:20 +08:00
parent 680edee499
commit 92fd2fa76f
4 changed files with 8 additions and 3 deletions

View File

@@ -43,7 +43,11 @@ export default function SearchScreen() {
setError(null);
try {
const response = await moonTVApi.searchVideos(keyword);
setResults(response.results);
if (response.results.length > 0) {
setResults(response.results);
} else {
setError("没有找到相关内容");
}
} catch (err) {
setError("搜索失败,请稍后重试。");
console.error("Search failed:", err);