Skip to content

Commit 66c9383

Browse files
committed
improvement(sns-ui): 优化朋友圈导出面板与保存体验
- 新增 HTML/JSON/TXT 导出格式切换 - 支持选择导出目录并自动保存导出包 - 增加总进度和当前联系人进度展示
1 parent f6c4e58 commit 66c9383

2 files changed

Lines changed: 444 additions & 42 deletions

File tree

frontend/composables/useApi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,15 @@ export const useApi = () => {
453453
return await request(`/chat/exports/${encodeURIComponent(String(exportId))}`, { method: 'DELETE' })
454454
}
455455

456-
// 朋友圈导出(离线 HTML zip
456+
// 朋友圈导出(离线 ZIP,支持 HTML / JSON / TXT
457457
const createSnsExport = async (data = {}) => {
458458
return await request('/sns/exports', {
459459
method: 'POST',
460460
body: {
461461
account: data.account || null,
462462
scope: data.scope || 'selected',
463463
usernames: Array.isArray(data.usernames) ? data.usernames : [],
464+
format: data.format || 'html',
464465
use_cache: data.use_cache == null ? true : !!data.use_cache,
465466
output_dir: data.output_dir == null ? null : String(data.output_dir || '').trim(),
466467
file_name: data.file_name || null

0 commit comments

Comments
 (0)