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)" /> +