Comments (3)
Why do you need send POST data in fetch?
By default a Fetch use GET method that doesn't send data in the request BODY.
The most easy and correct is that in your API instead of get POST params, get URL params and you don't need customize nothing in your App.
If you want to do a "fetch" sending post data, you need register a custom request method and override some default functions to your custom request "fetch" with post data.
from vue-mc.
I may be doing something wrong, but our fetch() is being changed to allow searching and pagination of results on the server side, and I need search to sometimes include non ASCII characters. To my understanding, a GET request will require ASCII only parameters.
I have no problem implementing a custom method (I already have actually as a stopgap solution) but I'm just pointing out that while fetch can be switched to POST, the behavior doesn't seem to line up correctly.
from vue-mc.
@ryanrapini Maybe you can create a simple model and send POST data normally. This is the most easy and understandable and will works good. To the pagination you can handle with Vue Router getting the "{page_number}" and setting in the model before the POST like this: myModel.set('page_number', pageNumber)
and after myModel.Save().then((result) => {// code} ).finally(() => { // code })
and you won't have problems with the save because the page_number property is always edited before save. I hope this help you. :)
from vue-mc.
Related Issues (20)
- Adapters for backend frameworks? HOT 1
- How to do a simple model update? HOT 1
- Support for Spanish validation message
- Documentation for adding own api calls HOT 1
- how to create an attribute type class
- Question: When is the next release (in Typescript)? HOT 1
- Custom authentication header change the other headers HOT 1
- Decoupling vue-mc from RESTful APIs HOT 1
- Define global Axios configuration HOT 1
- Website http://vuemc.io/ is down HOT 1
- Model's onDeleteSuccess behaviour makes it difficult to know what was deleted/removed
- Support Vue3 HOT 7
- axios SSRF vulnerability fix HOT 3
- Error: Not allowed to overwrite model identifier HOT 2
- Nested validation not working
- attaching auth headers HOT 1
- Depends on vulnerable versions of axios
- Is the project dropped ? HOT 12
- Documentation web site down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-mc.