fix:去除页面假数据

This commit is contained in:
zhangyu
2022-02-16 16:52:34 +08:00
parent 2e81ba0ca3
commit 9689390af1

View File

@@ -190,12 +190,12 @@ export default {
}
const requestUrl = url || (chartParams && chartParams.url)
if (requestUrl) {
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {
if (this.chartInfo.type === 23 && testData) {
response = testData.data
} else if (this.chartInfo.type === 24 && testData) {
response = testData.data2
}
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {1
// if (this.chartInfo.type === 23 && testData) {
// response = testData.data
// } else if (this.chartInfo.type === 24 && testData) {
// response = testData.data2
// }
if (response.code === 200) {
if (Array.isArray(response.data.result)) {
response.data.result.forEach(item => {