<script setup>
import FormTitle from "../../../../../components/FormTitle/index.vue";
import {toPath} from "../../../../../utils/index.js";
import {useSystemStore} from "../../../../../pinia/SystemStore/index.js";

const emits = defineEmits(['success', 'init']);
const SystemStore = useSystemStore();

const success = () => {
    emits('success');
}
</script>

<template>
    <FormTitle>
        <template #title>效果管理</template>

        <a-result title="创建成功" subtitle="任务创建成功" status="success">
            <template #extra>
                <a-space>
                    <a-button type="secondary"
                              @click="toPath(!SystemStore.isRoot ? '/home/task-center/reward-mission' : '/home/manage-reward-mission/task-review')">
                        查看任务
                    </a-button>
                    <a-button type="primary" @click="emits('init')" v-if="!SystemStore.isRoot">再次创建</a-button>
                </a-space>
            </template>
        </a-result>
    </FormTitle>
</template>

<style lang="scss" scoped>
.info {
    color: rgb(134, 144, 156);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
}
</style>
