From 7ae5a1ab125536607eb785f99cd033602b42fd8f Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 06 十一月 2023 15:10:30 +0800 Subject: [PATCH] 新建产品类别的时候产品数为0 --- src/views/warehouseManage/warehouse/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/warehouseManage/warehouse/index.vue b/src/views/warehouseManage/warehouse/index.vue index 3cacba9..03e589f 100644 --- a/src/views/warehouseManage/warehouse/index.vue +++ b/src/views/warehouseManage/warehouse/index.vue @@ -125,10 +125,10 @@ page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { - if (res.data.code == 200) { - const list = res.data.data?res.data.data:[] + if (res.code == 200) { + const list = res.data?res.data:[] this.tableList.tableInfomation = list - this.pagerOptions.totalCount = res.data.total + this.pagerOptions.totalCount = res.total } }) }, -- Gitblit v1.8.0