1
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user