fix: 修复编辑oai账号是代理IP被错误保存的问题

This commit is contained in:
shaw
2025-09-18 10:22:41 +08:00
parent 0881cc09e2
commit f70c3babc9
3 changed files with 33 additions and 79 deletions

View File

@@ -671,10 +671,7 @@ async function getAllAccounts() {
if (accountData.proxy) {
try {
accountData.proxy = JSON.parse(accountData.proxy)
// 屏蔽代理密码
if (accountData.proxy && accountData.proxy.password) {
accountData.proxy.password = '******'
}
// 屏蔽代理密码,返回明文
} catch (e) {
// 如果解析失败设置为null
accountData.proxy = null