Problem description: Use the fetch.post method in vue to report a 500 error
. Server:
Client:
Result:
A page with 500 errors.
Solution:
Before using the method, add bodyParser, because the body in req.body.id comes from this bodyParser.
After adding: