Vue how to pass the key value to the background, through the key value returned by the background to change the data obtained by the page.

problem description

pass the key value to the background and change the obtained data through the key value.

the environmental background of the problems and what methods you have tried

change the contents of the table by passing the key value to the background with each click.

related codes

/ / Please paste the code text below (do not replace the code with a picture)
/ / return to the background key value to refresh the page

  get:function () {
    this.$axios.get("http://127.0.0.1:9000/commodity/category/tree", {
      header: "key"
    })
    .then((res) => {
      this.list = res.data;
      console.log(res);
    })
    .catch((res) => {
      console.log(res);
    });
  },

what result do you expect? What is the error message actually seen?

how to change the data according to the key value, through the top of the tree structure to change the data of the lower layer

Oct.27,2021

first of all, you pass the value key to the backend and query the corresponding data to you according to your value. Key is used as a condition of the query to obtain the corresponding data
for example, if key is a male backstage, I will give it to you.
Why do you feel that your needs are expressed strangely?

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