fix(connect): 连接提示使用 URL 中的设备 IP,去掉写死的 10.0.0.119

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fucheng
2026-09-20 10:46:54 +08:00
parent 4dc2444946
commit 0bab1bb968
7 changed files with 8 additions and 8 deletions
@@ -40,7 +40,7 @@ export default function ConnectionPlaceholder() {
<>
<p className="text-[15px] text-white/80 mb-2">{text.ipMissingTitle}</p>
<p className="text-[13px] text-white/45 text-center max-w-xs">{text.ipMissingDesc}</p>
<p className="text-[13px] text-[#00FFF6]/80 mt-3 font-mono">?ip=10.0.0.119</p>
<p className="text-[13px] text-[#00FFF6]/80 mt-3 font-mono">?ip=</p>
</>
) : isConnecting ? (
<>
@@ -53,7 +53,7 @@ export default function ConnectionPlaceholder() {
<p className="text-[13px] text-white/45 text-center max-w-xs">
{error && !isLikelyNetworkFetchError(error) ? error : text.failedDesc}
</p>
<p className="text-[12px] text-white/30 mt-3 text-center max-w-xs">{text.failedHint}</p>
<p className="text-[12px] text-white/30 mt-3 text-center max-w-xs">{fmt(text.failedHint, { ip })}</p>
</>
)}
<BottomNav />