This commit is contained in:
2025-06-23 14:44:05 +08:00
parent 56caa92801
commit 534adf126a
5 changed files with 28 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ import XModal from "./XModal.vue";
import {getCurrentInstance, nextTick, onMounted, reactive, ref, watch} from "vue";
import PlatformENUM from "../enum/PlatformENUM";
import Api from "../api/index";
import {showToast} from "../utils/uils";
import {showToast, toPage} from "../utils/uils";
const emits = defineEmits(['success']);
const {details} = defineProps({
@@ -76,12 +76,13 @@ const success = async () => {
showToast('请选择帐号');
return;
}
const {msg} = await Api.system.acceptTask({
const {msg, data} = await Api.system.acceptTask({
id: details.id,
account: selected.value,
});
showToast(msg);
show.value = false;
await toPage(`/pages/taskDetails/index?id=${data[1]}&task_children_id=${0}&delta=999`)
emits('success');
}
</script>
@@ -134,7 +135,7 @@ const success = async () => {
<template v-else>
<view class="!flex flex-col items-center pb-[50rpx]">
<image class="!size-[260rpx]" :src="NULLICON"></image>
<view class="test-28r">
<view class="test-28r" v-if="po.status===0">
可在我的账号管理中添加自媒体账号
</view>
</view>