|
|
@ -203,15 +203,13 @@ const get = async function (val) { |
|
|
|
totalFreeGold.value = data.freeGolds |
|
|
|
totalTaskGold.value = data.taskGolds |
|
|
|
totalGoldTotal.value = data.sumGolds |
|
|
|
} |
|
|
|
if (totalResult.code === 0) { |
|
|
|
} else if (totalResult.code === 0) { |
|
|
|
// 将表格数据设置为空数组 |
|
|
|
tableData.value = [] |
|
|
|
totalPermanentGold.value = 0 |
|
|
|
totalFreeGold.value = 0 |
|
|
|
totalTaskGold.value = 0 |
|
|
|
totalGoldTotal.value = 0 |
|
|
|
|
|
|
|
} else { |
|
|
|
ElMessage.error('获取合计数据失败') |
|
|
|
} |
|
|
|