From 600545d6524e4696386410f60160d2f650347031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=BB=E5=8B=87=E7=A5=A5?= <237899745@qq.com> Date: Mon, 24 Nov 2025 21:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E5=90=8C=E6=AD=A5=E6=97=B6=E6=9C=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端修复: - 在检测存储配置更新前,先同步完整的用户信息 - 确保 has_ftp_config 等字段及时更新 - 使用对象扩展运算符合并用户信息,避免覆盖现有字段 问题修复: - 修复存储配置检测可能使用过期用户信息的问题 - 确保用户配置状态与服务器保持同步 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/app.js b/frontend/app.js index 5b1e7e1..2e7e288 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -1775,6 +1775,8 @@ handleDragLeave(e) { if (response.data.success && response.data.user) { const user = response.data.user; + // 同步用户信息(含 has_ftp_config) + this.user = { ...(this.user || {}), ...user }; // 检测存储配置是否被管理员更改 const oldStorageType = this.storageType;