Эх сурвалжийг харах

收衣衣服品牌无放到第一

lhch2015 2 долоо хоног өмнө
parent
commit
456db696f4

+ 5 - 4
admin-ui/src/views/order/cloth/collectCloth.vue

@@ -1112,13 +1112,14 @@ export default {
                     this.$forceUpdate()
                 } else {
                     allBrand().then((res) => {
-                        res.data.push({
+                        // res.data.push()
+                        let list = [{
                             id: '0',
                             name: '无'
-                        })
+                        }, ...res.data]
                         this.defaultList.brand = ''
-                        this.defaultList.clothBrands = res.data
-                        this.clothBrands = res.data
+                        this.defaultList.clothBrands = list
+                        this.clothBrands = list
                         this.addClothActiveTab = 3
                     })
                 }