vue-element-admin request post error request timeout

The problem is that the express middleware body-parser in the mock-server causes no problem without parameters. This will happen without parameters. An error will be reported and the request timeout timeout of 5000ms will be reported.

Find mock-server.js under mock

const chokidar = require('chokidar')
const bodyParser = require('body-parser')
const chalk = require('chalk')

Guess you like

Origin blog.csdn.net/weixin_45441173/article/details/128802337