Browse Source

修改bug

cr 4 years ago
parent
commit
a0f40c3225

+ 1 - 4
src/components/easy-upload/easy-upload.vue

@@ -124,16 +124,13 @@ export default {
124
         };
124
         };
125
     },
125
     },
126
     mounted() {
126
     mounted() {
127
-        this.uploads = [];
128
-        console.log(1);
129
     },
127
     },
130
     watch: {
128
     watch: {
131
         value: {
129
         value: {
132
             handler(val) {
130
             handler(val) {
133
-                console.log("12", val);
131
+                console.log(2222,val);
134
                 this.uploads = val;
132
                 this.uploads = val;
135
             },
133
             },
136
-            immediate: true,
137
         },
134
         },
138
     },
135
     },
139
     methods: {
136
     methods: {

+ 4 - 5
src/pages/manage/add-good-form.vue

@@ -330,7 +330,7 @@
330
                 <div class="list">
330
                 <div class="list">
331
                     <easy-upload
331
                     <easy-upload
332
                         :types="'image'"
332
                         :types="'image'"
333
-                        v-model="mainImage"
333
+                        :value="mainImage"
334
                         :uploadCount="1"
334
                         :uploadCount="1"
335
                         :openCilp="true"
335
                         :openCilp="true"
336
                         @change="minImgChange"
336
                         @change="minImgChange"
@@ -342,7 +342,7 @@
342
                 <div class="list">
342
                 <div class="list">
343
                     <easy-upload
343
                     <easy-upload
344
                         :types="'image'"
344
                         :types="'image'"
345
-                        v-model="productForm.images"
345
+                        :value="productForm.images"
346
                         :uploadCount="100"
346
                         :uploadCount="100"
347
                         @change="imagesChange"
347
                         @change="imagesChange"
348
                     ></easy-upload>
348
                     ></easy-upload>
@@ -355,7 +355,7 @@
355
                 <div class="list">
355
                 <div class="list">
356
                     <easy-upload
356
                     <easy-upload
357
                         :types="'image'"
357
                         :types="'image'"
358
-                        v-model="productForm.detailImages"
358
+                        :value="productForm.detailImages"
359
                         :uploadCount="100"
359
                         :uploadCount="100"
360
                         @change="detailImagesChange"
360
                         @change="detailImagesChange"
361
                     ></easy-upload>
361
                     ></easy-upload>
@@ -586,8 +586,7 @@ export default {
586
         };
586
         };
587
     },
587
     },
588
     onLoad() {
588
     onLoad() {
589
-        this.mainImage = [];
590
-        this.video = [];
589
+        this.reset();
591
         // this.getStore();
590
         // this.getStore();
592
         if (this.user.storeId) {
591
         if (this.user.storeId) {
593
             this.baseInfo.storeId = this.user.storeId;
592
             this.baseInfo.storeId = this.user.storeId;

+ 1 - 1
src/pages/manage/index.vue

@@ -55,7 +55,7 @@
55
 
55
 
56
         <button class="btn" @click="layout">退出登录</button>
56
         <button class="btn" @click="layout">退出登录</button>
57
 
57
 
58
-        <div class="ver">0.2.95</div>
58
+        <div class="ver">0.2.96</div>
59
     </div>
59
     </div>
60
 </template>
60
 </template>
61
 
61