Maybe because of this
?
I assume that console.log('this.Options Successful get data')
works as expected. Try to change your loadOptions
method as follows:
loadOptions() {
ajax.get('/options/options').then(data => {
this.Options = data.Options;
console.log('this.Options Successful get data')
});
},
Arrow function should help to point this
to your Vue component instance.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…