Vue Local Analog post data req.body undefined

the express service is configured locally, and the get request is fine, but the data cannot be obtained when the post request is made. Req.body is always undefined. The corresponding body-parser is also configured, but it doesn"t work

const app = express();
const apiRoutes = express.Router();
const bodyParser = require("body-parser");
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use("/", apiRoutes);
before (app) {
    app.post("/post", (req, res) => {
        console.log(req.body)
      })
   }
Jul.13,2022
Is

cross-domain? has proxy been set


the running time of before is before all the middleware on the server, so it should be that body-parse hasn't been parsed yet, before should be replaced with after, after runs after all middleware, and it should have been parsed

at this time.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e562-40991.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e562-40991.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?