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存储配置已保存!');