cr лет назад: 4
Родитель
Сommit
a0f40c3225

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

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

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

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

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

@@ -55,7 +55,7 @@
55 55
 
56 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 59
     </div>
60 60
 </template>
61 61