Fix:2643 【地标好物】切换到无数据的省份,项目-企业推荐和服务内容会同步上一个省份内容

This commit is contained in:
modendeveloper
2024-11-24 15:19:00 +08:00
parent c484d20cb2
commit 82b8e53aee
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export default {
},
getData() {
getCulture({landmarkDataId: this.landmarkDataId}).then(res => {
this.list = res.data.cultureImages
this.list = res.data.cultureImages || []
})
}
}
+1 -1
View File
@@ -122,7 +122,7 @@ export default {
limit: 9999
}
getNews(params).then(res => {
this.infoArray = res.data.records
this.infoArray = res.data.records || []
})
},
likeInfoItemHandle(item, index, value, voValue) {
+1 -1
View File
@@ -56,7 +56,7 @@ export default {
limit: 99999
}
getPorjectPolicyFiles(params).then(res => {
this.list = res.data.records
this.list = res.data.records || []
if(this.isMore) {
this.currentList = this.list
} else {
+1 -1
View File
@@ -57,7 +57,7 @@ export default {
methods: {
getData() {
getPorjectRecommend({landmarkDataId: this.landmarkDataId}).then(res => {
this.list = res.data
this.list = res.data || []
if(this.isMore) {
this.currentList = this.list
} else {