Commit cf9e2c8d authored by 刘殿昕's avatar 刘殿昕

修复问答管理

parent 78bcda54
...@@ -235,11 +235,11 @@ export default { ...@@ -235,11 +235,11 @@ export default {
style: 3, style: 3,
create_user: this.search_user, create_user: this.search_user,
start: start:
this.search_date && this.search_date.length != 0 this.search_date && this.search_date[0]
? this.search_date[0] ? this.search_date[0]
: "", : "",
end: end:
this.search_date && this.search_date.length != 0 this.search_date && this.search_date[1]
? this.search_date[1] ? this.search_date[1]
: "", : "",
limit: this.currentlimit, limit: this.currentlimit,
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
}; };
this.$api.user.getQuestionList(query).then((response) => { this.$api.user.getQuestionList(query).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.tableData = response.data.data; this.tableData = response.data.data || [];
this.total_list = response.data.total; this.total_list = response.data.total;
} }
}); });
...@@ -260,11 +260,11 @@ export default { ...@@ -260,11 +260,11 @@ export default {
style: 3, style: 3,
create_user: this.search_user, create_user: this.search_user,
start: start:
this.search_date && this.search_date.length != 0 this.search_date && this.search_date[0]
? this.search_date[0] ? this.search_date[0]
: "", : "",
end: end:
this.search_date && this.search_date.length != 0 this.search_date && this.search_date[1]
? this.search_date[1] ? this.search_date[1]
: "", : "",
limit: this.currentlimit, limit: this.currentlimit,
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
}; };
this.$api.user.getAnswerList(query).then((response) => { this.$api.user.getAnswerList(query).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.tableData = response.data.data; this.tableData = response.data.data || [];
this.total_list = response.data.total; this.total_list = response.data.total;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment