解决轮播

This commit is contained in:
red-deng-deng 2021-11-30 06:57:26 +08:00
parent ed1e148576
commit 4c3750bdf1
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@
req.axiosPostproducts('/key/products', data).then(res => {
if (res.code == 200) {
self.swiperDataList = res.data;
self.goodsShow=res.data.length>3;
self.goodsShow=res.data.length>1;
if (res.data&&res.data.length>0) {
self.goodsNum = true;
self.onSelected(res.data[0])