The problem of axios sending request and passing parameters in vue

problem description: use axios to send request, pass parameter format question
use axios to pass parameter format as follows
clipboard.png
jquery
clipboard.png
how to use axios to pass parameter format is the same as jquery format, can you help me solve it?

axios sends the request code as follows

axios.get("/rest/hotel/search/", {
  params: {
    data_style: "mobile",
    filter: {
      keyword: key,
    },
    page: {
      mode: "sequential",
      boundary: 0,
      num: 10,
    },
  },
}).then(res => {
  console.log(res);
});
Jun.22,2022

you can try to introduce qs to handle the objects sent

import Qs from 'qs'

params: Qs.stringify({
    data_style: 'mobile',
    filter: {
      keyword: key,
    },
    page: {
      mode: 'sequential',
      boundary: 0,
      num: 10,
    },
  }),

how is axios configured? I didn't reproduce this situation.

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-1e98961-16f0.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-1e98961-16f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?