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.

Menu