ソースを参照

我的车辆总数

zaijin 2 年 前
コミット
5e3934c329
1 ファイル変更1 行追加0 行削除
  1. 1 0
      pages/myCars/myCars.vue

+ 1 - 0
pages/myCars/myCars.vue

@@ -128,6 +128,7 @@ export default {
         if (res.code === 200) {
           this.mycars = this.mycars.concat(res?.data?.rows ?? []);
           this.page.total = Number(res?.data?.pages ?? 0);
+          this.mycarsTotal = Number(res?.data?.total ?? 0);
           if (this.page.num >= this.page.total) this.status = 'nomore';
           else this.status = 'loading';
         }