Метод get Vue.js работает вместо метода post.
но в localhost он работает отлично.
Только сталкиваюсь с этой проблемой, когда я загружаю проект на сервер
export default {
data(){
return {
form: new Form({
company_name : '',
address : '',
contact_name : '',
number : '',
keyword_or_comment : '',
attachment : ''
})
}
},
methods: {
createPhoneBook(){
this.$Progress.start();
const url = `${API_URL}/api/apiurl/`;
this.form.post(url)
.then(() => {
toast.fire({
type: 'success',
title: 'Phone book added successfully'
})
this.$Progress.finish();
})
.catch(() => {
this.$Progress.fail()
})
}
},
created() {
}
}
Любой может помочь мне,
заранее спасибо.