This commit is contained in:
duanxiaohai 2024-06-20 17:15:37 +08:00
parent 6b4538aab6
commit 060202c4d1
1 changed files with 3 additions and 6 deletions

View File

@ -612,12 +612,9 @@ const getData = async () => {
//
data.whistleblower = res.data.whistleblower;
// 线
const dataArray = res.data.whistleblower.culeTotal.data;
const dataArray1 = res.data.whistleblower.gaCules.data;
const dataArray2 = res.data.whistleblower.jcgCules.data;
data.culeTotal = dataArray[dataArray.length - 1];
data.gaCules = dataArray1[dataArray1.length - 1];
data.jcgCules = dataArray2[dataArray2.length - 1];
data.culeTotal = res.data.whistleblower.culeTotal.data.slice(-1)[0];
data.gaCules = res.data.whistleblower.gaCules.data.slice(-1)[0];
data.jcgCules = res.data.whistleblower.jcgCules.data.slice(-1)[0];
}
});
};