Pārlūkot izejas kodu

Fix prop images - didn't work after publish

master
George Williams 4 gadus atpakaļ
vecāks
revīzija
de25d1515f

+ 3
- 0
src/components/property/commercial/createProperty/commercialCreate.vue Parādīt failu

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

+ 3
- 0
src/components/property/residential/createProperty/residentialCreate.vue Parādīt failu

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

+ 2
- 2
src/main.js Parādīt failu

@@ -25,8 +25,8 @@ Vue.use(VueGoogleMaps, {
25 25
 });
26 26
 Vue.config.productionTip = false;
27 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 31
 Vue.prototype.$axios = axios;
32 32
 

Notiek ielāde…
Atcelt
Saglabāt