|
@@ -115,8 +115,8 @@ export default {
|
115
|
115
|
state.sellItem.resortCode = resort.resortCode;
|
116
|
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
|
122
|
getters: {
|
|
@@ -212,9 +212,7 @@ export default {
|
212
|
212
|
}, week) {
|
213
|
213
|
axios
|
214
|
214
|
.post('/api/timeshareweek', week)
|
215
|
|
- .then(result => commit('displayResult', {
|
216
|
|
- result,
|
217
|
|
- }))
|
|
215
|
+ .then(result => commit('displayResult'))
|
218
|
216
|
.catch(console.error);
|
219
|
217
|
},
|
220
|
218
|
},
|