Przeglądaj źródła

Changed success result

master
Kobus 5 lat temu
rodzic
commit
6cc56953ec
1 zmienionych plików z 3 dodań i 5 usunięć
  1. 3
    5
      src/store/modules/timeshare/timeshare.js

+ 3
- 5
src/store/modules/timeshare/timeshare.js Wyświetl plik

115
       state.sellItem.resortCode = resort.resortCode;
115
       state.sellItem.resortCode = resort.resortCode;
116
       state.sellItem.resortName = resort.resortName;
116
       state.sellItem.resortName = resort.resortName;
117
     },
117
     },
118
-    displayResult(state, result) {
119
-      state.result = result;
118
+    displayResult(state) {
119
+      state.result = 'Week has been added ^-^';
120
     },
120
     },
121
   },
121
   },
122
   getters: {
122
   getters: {
212
     }, week) {
212
     }, week) {
213
       axios
213
       axios
214
         .post('/api/timeshareweek', week)
214
         .post('/api/timeshareweek', week)
215
-        .then(result => commit('displayResult', {
216
-          result,
217
-        }))
215
+        .then(result => commit('displayResult'))
218
         .catch(console.error);
216
         .catch(console.error);
219
     },
217
     },
220
   },
218
   },

Ładowanie…
Anuluj
Zapisz