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