接口初始化 第一版

This commit is contained in:
yuping
2022-12-11 21:18:27 +08:00
parent e285ccd467
commit b98e1f29be
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndR
export const COMMENT_LIST = '/comment/list'
export const VOTE_DETAIL2 = '/vote/queryStemByStemId post'
export const VOTE_DETAIL2= ballotId => `/vote/queryStemByStemId?ballotId=${ballotId} post`
export const COMMENT_ADD = '/comment post'
export const COMMENT_PRAISE = '/comment/praise post'
export const COMMENT_COLLECTION = '/comment/collection post'

View File

@@ -165,7 +165,7 @@ import { useRoute } from "vue-router/dist/vue-router";
const {
query: { ballotId = 3 },
} = useRoute();
const { data: dataInfo } = useRequest(VOTE_DETAIL2, { ballotId });
const { data: dataInfo } = useRequest(VOTE_DETAIL2(ballotId));
console.log("dataInfo", dataInfo);
const handleClick = (tab, event) => {
console.log(tab, event);