mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
♻️ 请求重构,合并postWapi跟apiHub相关请求
This commit is contained in:
@@ -55,8 +55,8 @@ const votes = ref<TpVoteInfo>();
|
||||
|
||||
onMounted(async () => {
|
||||
const vote = props.data.insert.vote;
|
||||
const voteInfo = await Mys.Vote.get(vote.id, vote.uid);
|
||||
const voteResult = await Mys.Vote.result(vote.id, vote.uid);
|
||||
const voteInfo = await Mys.ApiHub.getVotes(vote.id, vote.uid);
|
||||
const voteResult = await Mys.ApiHub.getVoteResult(vote.id, vote.uid);
|
||||
votes.value = {
|
||||
title: voteInfo.title,
|
||||
count: voteResult.user_cnt,
|
||||
|
||||
Reference in New Issue
Block a user