From da7d28f7aa40c8d27f6d4542a10b25183353e116 Mon Sep 17 00:00:00 2001 From: "949036910@qq.com" <> Date: Thu, 28 May 2026 15:33:56 +0800 Subject: [PATCH] 1 --- src/components/workflow/Step07Publish.vue | 17 +++++++++++ src/services/videoPublish.js | 36 +++++++++++++++++++++++ src/stores/workflow.js | 5 ++++ 3 files changed, 58 insertions(+) diff --git a/src/components/workflow/Step07Publish.vue b/src/components/workflow/Step07Publish.vue index 8afb078..8710e15 100644 --- a/src/components/workflow/Step07Publish.vue +++ b/src/components/workflow/Step07Publish.vue @@ -20,6 +20,7 @@ const scheduleDialogVisible = ref(false); const scheduleDate = ref(null); const accountDialogVisible = ref(false); const activePlatformKey = ref("douyin"); +const checkingAccountId = ref(null); const hasVideo = computed( () => Boolean(processedVideoPath.value || generatedVideoPath.value), @@ -125,6 +126,13 @@ async function onAddAccount(platform) { await onLogin(platform, null); } +async function onTestAccount(platform, account) { + checkingAccountId.value = account.id; + const result = await workflow.checkPublishLoginStatus(platform.key, account.id, true); + checkingAccountId.value = null; + showFeedback(result); +} + function onDeleteAccount(platform, account) { platform.accounts = (platform.accounts || []).filter((a) => a.id !== account.id); if (platform.accountId === account.id) { @@ -320,6 +328,15 @@ function formatUpdateTime(account) { :loading="publishLoggingIn === activePlatform.key" @click="onLoginAccount(activePlatform, account)" /> +