fix:去除页面假数据
This commit is contained in:
@@ -190,12 +190,12 @@ export default {
|
|||||||
}
|
}
|
||||||
const requestUrl = url || (chartParams && chartParams.url)
|
const requestUrl = url || (chartParams && chartParams.url)
|
||||||
if (requestUrl) {
|
if (requestUrl) {
|
||||||
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {
|
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {1
|
||||||
if (this.chartInfo.type === 23 && testData) {
|
// if (this.chartInfo.type === 23 && testData) {
|
||||||
response = testData.data
|
// response = testData.data
|
||||||
} else if (this.chartInfo.type === 24 && testData) {
|
// } else if (this.chartInfo.type === 24 && testData) {
|
||||||
response = testData.data2
|
// response = testData.data2
|
||||||
}
|
// }
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
if (Array.isArray(response.data.result)) {
|
if (Array.isArray(response.data.result)) {
|
||||||
response.data.result.forEach(item => {
|
response.data.result.forEach(item => {
|
||||||
|
|||||||
Reference in New Issue
Block a user