var router= this.$router.push('/choose?keyword='+this.value).then(res=>{
console.log(res.query);
})
console.log(router);
或者
if (index !=0) {
console.log(index);
const btn = 1;
this.$axios
.get(`/index_category/${index + 1}/data/${btn}`).then((v)=>{......})
}
获取指定分类页面特有的数据
this.$axios
.post("/goods/search", null, {
params: {
title: this.file,
page: this.page,
...this.options,
...this.condition,
},
})
.then((v) => {
console.log(v);
// 这里要以对象的形式进行传参
console.log({ ...this.options });
console.log(this.title);
let con = this.formata(v.data.data);
this.list = refresh ? [...con, ...this.list] : [...con];
});