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 }