From cf9e2c8dc119019e39f164e2c136e5f32d34032d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Tue, 26 Jan 2021 14:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E7=AD=94=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/questions-answers/community.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/user/questions-answers/community.vue b/src/pages/user/questions-answers/community.vue index cb26d5f..9efe163 100644 --- a/src/pages/user/questions-answers/community.vue +++ b/src/pages/user/questions-answers/community.vue @@ -235,11 +235,11 @@ export default { style: 3, create_user: this.search_user, start: - this.search_date && this.search_date.length != 0 + this.search_date && this.search_date[0] ? this.search_date[0] : "", end: - this.search_date && this.search_date.length != 0 + this.search_date && this.search_date[1] ? this.search_date[1] : "", limit: this.currentlimit, @@ -248,7 +248,7 @@ export default { }; this.$api.user.getQuestionList(query).then((response) => { if (response.data.success == 1) { - this.tableData = response.data.data; + this.tableData = response.data.data || []; this.total_list = response.data.total; } }); @@ -260,11 +260,11 @@ export default { style: 3, create_user: this.search_user, start: - this.search_date && this.search_date.length != 0 + this.search_date && this.search_date[0] ? this.search_date[0] : "", end: - this.search_date && this.search_date.length != 0 + this.search_date && this.search_date[1] ? this.search_date[1] : "", limit: this.currentlimit, @@ -272,7 +272,7 @@ export default { }; this.$api.user.getAnswerList(query).then((response) => { if (response.data.success == 1) { - this.tableData = response.data.data; + this.tableData = response.data.data || []; this.total_list = response.data.total; } }); -- 2.26.0