feat:合并

This commit is contained in:
lixg
2022-12-11 20:59:57 +08:00
4 changed files with 61 additions and 47 deletions

View File

@@ -159,10 +159,13 @@ import {
VOTE_DETAIL2,
} from "@/api/api";
import dayjs from "dayjs";
import { useRoute } from "vue-router/dist/vue-router";
// const { data } = useRequest(TASK_VOTE_DETAIL, {});
// console.log("datadatadata", data);
const { dataInfo } = useRequest(VOTE_DETAIL2, { ballotId: 3 });
const {
query: { ballotId = 3 },
} = useRoute();
const { data: dataInfo } = useRequest(VOTE_DETAIL2, { ballotId: ballotId });
console.log("dataInfo", dataInfo);
const handleClick = (tab, event) => {
console.log(tab, event);