From fd52594b83eacaac35284083c3297602a67d5083 Mon Sep 17 00:00:00 2001 From: WanWanYun Date: Wed, 12 Nov 2025 22:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0SFTP=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=E4=BD=BF=E7=94=A8switchView=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正switchStorage方法中跳转设置页面的逻辑 - 从直接修改currentView改为调用switchView方法 - 确保视图切换时正确触发数据加载(如SFTP配置表单) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app.js b/frontend/app.js index 0cd8ca5..129e67f 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -1581,7 +1581,7 @@ handleDragLeave(e) { if (type === 'sftp' && !this.user.has_ftp_config) { const goToSettings = confirm('您还未配置SFTP服务器。\n\n是否现在前往设置页面进行配置?配置完成后将自动切换到SFTP存储。'); if (goToSettings) { - this.currentView = 'settings'; + this.switchView('settings'); } return; }