📝 重写 README 文档 & ✨ 优化前端功能
文档更新: - 完全重写 README.md,更加详细和专业 - 添加一键部署命令(curl 和 wget 两种方式) - 详细介绍双存储模式、邮件系统、安全防护等特性 - 添加完整的使用指南和常见问题解答 - 更新项目结构和技术栈说明 - 添加版本更新日志 前端优化: - 优化存储管理界面交互 - 改进文件管理功能 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -214,7 +214,10 @@ createApp({
|
||||
|
||||
// 存储切换状态
|
||||
storageSwitching: false,
|
||||
storageSwitchTarget: null
|
||||
storageSwitchTarget: null,
|
||||
|
||||
// SFTP配置引导弹窗
|
||||
showSftpGuideModal: false
|
||||
};
|
||||
},
|
||||
|
||||
@@ -1843,20 +1846,9 @@ handleDragLeave(e) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 切到SFTP但还未配置,引导去配置
|
||||
// 切到SFTP但还未配置,引导弹窗
|
||||
if (type === 'sftp' && (!this.user?.has_ftp_config)) {
|
||||
this.showToast('info', '需要配置SFTP', '请先填写SFTP信息再切换');
|
||||
this.currentView = 'settings';
|
||||
this.forceSftpConfigVisible = true;
|
||||
if (this.user && !this.user.is_admin) {
|
||||
this.loadFtpConfig();
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
const sftpSection = document.getElementById('sftp-config-section');
|
||||
if (sftpSection) {
|
||||
sftpSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
});
|
||||
this.showSftpGuideModal = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1888,6 +1880,33 @@ handleDragLeave(e) {
|
||||
}
|
||||
},
|
||||
|
||||
ensureSftpConfigSection() {
|
||||
this.currentView = 'settings';
|
||||
this.forceSftpConfigVisible = true;
|
||||
if (this.user && !this.user.is_admin) {
|
||||
this.loadFtpConfig();
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
const sftpSection = document.getElementById('sftp-config-section');
|
||||
if (sftpSection) {
|
||||
sftpSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
openSftpGuideModal() {
|
||||
this.showSftpGuideModal = true;
|
||||
},
|
||||
|
||||
closeSftpGuideModal() {
|
||||
this.showSftpGuideModal = false;
|
||||
},
|
||||
|
||||
proceedSftpGuide() {
|
||||
this.showSftpGuideModal = false;
|
||||
this.ensureSftpConfigSection();
|
||||
},
|
||||
|
||||
// 切换视图并自动刷新数据
|
||||
switchView(view) {
|
||||
// 如果已经在当前视图,不重复刷新
|
||||
|
||||
Reference in New Issue
Block a user