This commit is contained in:
949036910@qq.com
2026-05-28 15:33:56 +08:00
parent bf22177e80
commit da7d28f7aa
3 changed files with 58 additions and 0 deletions

View File

@@ -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)"
/>
<Button
v-if="account.hasCookies"
label="测试"
size="small"
severity="secondary"
outlined
:loading="checkingAccountId === account.id"
@click="onTestAccount(activePlatform, account)"
/>
<Button
label="删除"
size="small"