From cab511b99f309bb5539b9e01eee7c3ee82f4ab7a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 8 Apr 2025 10:23:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E4=B9=8B=E5=89=8D=E7=9A=84=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=B8=80=E7=9B=B4=E5=8A=A0=E8=BD=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/link/ShareProxy.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/share/link/ShareProxy.ts b/core/core-frontend/src/views/share/link/ShareProxy.ts index 2863c8ef27..5c5921e261 100644 --- a/core/core-frontend/src/views/share/link/ShareProxy.ts +++ b/core/core-frontend/src/views/share/link/ShareProxy.ts @@ -78,9 +78,11 @@ class ShareProxy { } const res = await request.post({ url, data: param }) const proxyInfo: ProxyInfo = res.data as ProxyInfo - proxyInfo.uuid = uuid - if (this.pwd) { - proxyInfo.pwd = this.pwd + if (proxyInfo) { + proxyInfo.uuid = uuid + if (this.pwd) { + proxyInfo.pwd = this.pwd + } } return proxyInfo }