|
@@ -97,21 +97,28 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.$toast.clear();
|
|
|
console.log(res);
|
|
|
- console.log(res.data.data.data);
|
|
|
+ console.log(res.data.data);
|
|
|
// 加载状态结束
|
|
|
this.loading = false;
|
|
|
this.page++;
|
|
|
|
|
|
- console.log(res.data.data.data.length);
|
|
|
+ console.log(res.data.data.length);
|
|
|
+
|
|
|
+ if (res.data.data.length < 10) {
|
|
|
+ this.finished = true;
|
|
|
+ }
|
|
|
+
|
|
|
// 数据全部加载完成
|
|
|
if (res.data.data.data.length < 10) {
|
|
|
this.finished = true;
|
|
|
+ this.TroubleshootData_list = this.TroubleshootData_list.concat(
|
|
|
+ res.data.data.data
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.TroubleshootData_list = this.TroubleshootData_list.concat(
|
|
|
+ res.data.data.data
|
|
|
+ );
|
|
|
}
|
|
|
-
|
|
|
- // this.TroubleshootData_list = res.data.data.data;
|
|
|
- this.TroubleshootData_list = this.TroubleshootData_list.concat(
|
|
|
- res.data.data.data
|
|
|
- );
|
|
|
});
|
|
|
},
|
|
|
|