Fix:2643 【地标好物】切换到无数据的省份,项目-企业推荐和服务内容会同步上一个省份内容
This commit is contained in:
@@ -47,7 +47,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
getCulture({landmarkDataId: this.landmarkDataId}).then(res => {
|
getCulture({landmarkDataId: this.landmarkDataId}).then(res => {
|
||||||
this.list = res.data.cultureImages
|
this.list = res.data.cultureImages || []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
getNews(params).then(res => {
|
getNews(params).then(res => {
|
||||||
this.infoArray = res.data.records
|
this.infoArray = res.data.records || []
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
likeInfoItemHandle(item, index, value, voValue) {
|
likeInfoItemHandle(item, index, value, voValue) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default {
|
|||||||
limit: 99999
|
limit: 99999
|
||||||
}
|
}
|
||||||
getPorjectPolicyFiles(params).then(res => {
|
getPorjectPolicyFiles(params).then(res => {
|
||||||
this.list = res.data.records
|
this.list = res.data.records || []
|
||||||
if(this.isMore) {
|
if(this.isMore) {
|
||||||
this.currentList = this.list
|
this.currentList = this.list
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getData() {
|
getData() {
|
||||||
getPorjectRecommend({landmarkDataId: this.landmarkDataId}).then(res => {
|
getPorjectRecommend({landmarkDataId: this.landmarkDataId}).then(res => {
|
||||||
this.list = res.data
|
this.list = res.data || []
|
||||||
if(this.isMore) {
|
if(this.isMore) {
|
||||||
this.currentList = this.list
|
this.currentList = this.list
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user