fix: 优化日志显示和下载完成反馈
This commit is contained in:
@@ -659,9 +659,9 @@ async function changePassword() {
|
||||
async function downloadConfig() {
|
||||
try {
|
||||
const filename = 'Configure.json';
|
||||
const completed = await downloadGet('/api/config/download', filename);
|
||||
if (completed) {
|
||||
showDownloadCompleteDialog(dialog, filename);
|
||||
const result = await downloadGet('/api/config/download', filename);
|
||||
if (result.saved) {
|
||||
showDownloadCompleteDialog(dialog, filename, result.path);
|
||||
}
|
||||
} catch (error) {
|
||||
message.error(error instanceof Error ? error.message : '下载配置失败');
|
||||
|
||||
Reference in New Issue
Block a user