Browse Source

Fix prop images - didn't work after publish

master
George Williams 4 years ago
parent
commit
de25d1515f

+ 3
- 0
src/components/property/commercial/createProperty/commercialCreate.vue View File

300
         this.property.isSale = true;
300
         this.property.isSale = true;
301
         this.property.dateAvailable = new Date();
301
         this.property.dateAvailable = new Date();
302
       }
302
       }
303
+      if (this.images.length > 0) {
304
+        this.property.propertyImages = [];
305
+      }
303
       // eslint-disable-next-line no-plusplus
306
       // eslint-disable-next-line no-plusplus
304
       for (let i = 0; i < this.images.length; i++) {
307
       for (let i = 0; i < this.images.length; i++) {
305
         let setAsDefault = false;
308
         let setAsDefault = false;

+ 3
- 0
src/components/property/residential/createProperty/residentialCreate.vue View File

310
         this.property.isSale = true;
310
         this.property.isSale = true;
311
         this.property.dateAvailable = new Date();
311
         this.property.dateAvailable = new Date();
312
       }
312
       }
313
+      if (this.images.length > 0) {
314
+        this.property.propertyImages = [];
315
+      }
313
       // eslint-disable-next-line no-plusplus
316
       // eslint-disable-next-line no-plusplus
314
       for (let i = 0; i < this.images.length; i++) {
317
       for (let i = 0; i < this.images.length; i++) {
315
         let setAsDefault = false;
318
         let setAsDefault = false;

+ 2
- 2
src/main.js View File

25
 });
25
 });
26
 Vue.config.productionTip = false;
26
 Vue.config.productionTip = false;
27
 //axios.defaults.baseURL = "http://localhost:57260";
27
 //axios.defaults.baseURL = "http://localhost:57260";
28
-//axios.defaults.baseURL = "http://training.provision-sa.com:82";
29
-axios.defaults.baseURL = "http://localhost:8080/";
28
+axios.defaults.baseURL = "http://training.provision-sa.com:82";
29
+//axios.defaults.baseURL = "http://localhost:8080/";
30
 
30
 
31
 Vue.prototype.$axios = axios;
31
 Vue.prototype.$axios = axios;
32
 
32
 

Loading…
Cancel
Save