From 67f13b1053e1959fc8f20159e8631cdf5144ad8d Mon Sep 17 00:00:00 2001 From: 237899745 <237899745@qq.com> Date: Thu, 22 Jan 2026 19:03:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=A1=E7=90=86=E5=91=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AEOSS=E5=90=8E=E4=B8=8D=E5=86=8D=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=EF=BC=8C=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E7=AE=A1=E7=90=86=E5=91=98=E7=9A=84=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 管理员保存OSS配置后留在管理面板,不跳转到文件列表 - 管理员页面隐藏存储模式切换UI(管理员只负责配置,不存储文件) Co-Authored-By: Claude Opus 4.5 --- frontend/app.html | 4 ++-- frontend/app.js | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/app.html b/frontend/app.html index ffda332..1d6b4e7 100644 --- a/frontend/app.html +++ b/frontend/app.html @@ -2473,8 +2473,8 @@ - -
+ +
diff --git a/frontend/app.js b/frontend/app.js index fc35f84..681eef4 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -679,14 +679,16 @@ handleDragLeave(e) { else { // 如果用户可以使用本地存储,直接进入文件页面 if (this.storagePermission === 'local_only' || this.storagePermission === 'user_choice') { - this.currentView = 'files'; - this.loadFiles('/'); + if (!this.user.is_admin) { + this.currentView = 'files'; + this.loadFiles('/'); } } // 如果仅OSS模式,需要检查是否配置了OSS(包括系统级统一配置) else if (this.storagePermission === 'oss_only') { if (this.user?.oss_config_source !== 'none') { - this.currentView = 'files'; - this.loadFiles('/'); + if (!this.user.is_admin) { + this.currentView = 'files'; + this.loadFiles('/'); } } else { this.currentView = 'settings'; this.showToast('info', '欢迎', '请先配置您的OSS服务'); @@ -694,8 +696,9 @@ handleDragLeave(e) { } } else { // 默认行为:跳转到文件页面 - this.currentView = 'files'; - this.loadFiles('/'); + if (!this.user.is_admin) { + this.currentView = 'files'; + this.loadFiles('/'); } } } } @@ -912,9 +915,7 @@ handleDragLeave(e) { // 关闭配置弹窗 this.showOssConfigModal = false; - // 刷新到文件页面 - this.currentView = 'files'; - this.loadFiles('/'); + // 管理员配置OSS后留在当前页面,不跳转到文件列表 // 显示成功提示 this.showToast('success', '配置成功', 'OSS存储配置已保存!');