diff --git a/frontend/composables/useApi.js b/frontend/composables/useApi.js index 470ee02..fd0c747 100644 --- a/frontend/composables/useApi.js +++ b/frontend/composables/useApi.js @@ -453,7 +453,7 @@ export const useApi = () => { return await request(`/chat/exports/${encodeURIComponent(String(exportId))}`, { method: 'DELETE' }) } - // 朋友圈导出(离线 HTML zip) + // 朋友圈导出(离线 ZIP,支持 HTML / JSON / TXT) const createSnsExport = async (data = {}) => { return await request('/sns/exports', { method: 'POST', @@ -461,6 +461,7 @@ export const useApi = () => { account: data.account || null, scope: data.scope || 'selected', usernames: Array.isArray(data.usernames) ? data.usernames : [], + format: data.format || 'html', use_cache: data.use_cache == null ? true : !!data.use_cache, output_dir: data.output_dir == null ? null : String(data.output_dir || '').trim(), file_name: data.file_name || null diff --git a/frontend/pages/sns.vue b/frontend/pages/sns.vue index da1136a..53f113a 100644 --- a/frontend/pages/sns.vue +++ b/frontend/pages/sns.vue @@ -14,13 +14,61 @@ class="mt-2 w-full px-3 py-2 rounded-md border border-gray-200 bg-white text-sm outline-none focus:ring-2 focus:ring-[#576b95]/30 focus:border-[#576b95]" /> +