-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vuex-Crud Analysis and adaptation #11
Labels
investigate
Frequently related to functionality investigation or testing tasks
Comments
Apaprently vuex-crud provides a way to modify the parameters a url can accept, before the service is fetched. (e.g.) createCrudModule({
resource: this.name,
customUrlFn(id) {
const rootUrl = 'http://localhost:8080/api/articles/'
return id ? `${rootUrl}${id}` : rootUrl
}
}); Usage methods: {
fetchResource: function() {
const resourceName = this.name + "/fetchSingle";
return this.$store.dispatch(resourceName, { id: this.$route.params.id });
}
} |
It's been decided, we will generalize the default axios client vuex-crud ships with. WIP in this fork |
sgobotta
added
the
investigate
Frequently related to functionality investigation or testing tasks
label
Dec 9, 2018
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We decided to use vuex-crud for store management. Apaprently the urls are kind of fixed at the moment, for each crud modul.
The text was updated successfully, but these errors were encountered: