shish há 3 anos atrás
pai
commit
324f0e69d8
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      ghsApp/src/admin/stat/stock.vue

+ 1 - 1
ghsApp/src/admin/stat/stock.vue

@@ -133,7 +133,7 @@ export default {
 			let that = this
 			getProductDataApi({ type, shopId: this.shopId,status:0,requestType:'hasStock'}).then(res=>{
 				if(res.code == 1){
-					that.classItemData = res.data
+					that.classItemData = res.data.classItem ? res.data.classItem : []
 				}
 			})
 		}