fix: 修改传参

catl
时启龙 2024-10-18 10:48:15 +08:00
parent faf6bdedc8
commit b1900c39b2
1 changed files with 4 additions and 4 deletions

View File

@ -154,14 +154,14 @@ export default {
} }
// //
const getResource = async () => { const getResource = async () => {
const res = await getResourceCount({ type: state.vendorType, isPublic: state.isPublic }) const res = await getResourceCount({ vendorType: state.vendorType, isPublic: state.isPublic })
if (res.success) { if (res.success) {
state.resourceCount = res.data state.resourceCount = res.data
} }
} }
// //
const getHostCount = async () => { const getHostCount = async () => {
const res = await getHostStatus({ type: state.vendorType, isPublic: state.isPublic }) const res = await getHostStatus({ vendorType: state.vendorType, isPublic: state.isPublic })
if (res.success) { if (res.success) {
state.hostCount = res.data state.hostCount = res.data
} }
@ -175,14 +175,14 @@ export default {
} }
// //
const getApplyCount = async () => { const getApplyCount = async () => {
const res = await getResourceApply({ type: state.vendorType, isPublic: state.isPublic }) const res = await getResourceApply({ vendorType: state.vendorType, isPublic: state.isPublic })
if (res.success) { if (res.success) {
state.applyTrendData = res.data state.applyTrendData = res.data
} }
} }
// 使 // 使
const getUsedCount = async () => { const getUsedCount = async () => {
const res = await getResourceTrend({ type: state.vendorType, isPublic: state.isPublic }) const res = await getResourceTrend({ vendorType: state.vendorType, isPublic: state.isPublic })
if (res.success) { if (res.success) {
state.usedTrendData = res.data state.usedTrendData = res.data
} }