vueプロジェクトのバックエンドの参照書式は行列です.
this.searchinput = window.sessionStorage.getItem('homeinput').replace(/\"/g, "");
this.searchxiala = window.sessionStorage.getItem('homexiala').replace(/\"/g, "");
const res = await this.$http ({
method: "GET",
url: '/getpostssearchlist',
params: {
_k1: [this.searchinput],
_aon: this.and,
_feild: [this.searchxiala],
refine: this.check,
from: this.page,
size: this.pageSize,
}
})
検索内容はトップページがsessionstora geに入っているので、検索ページがdataの新しい配列にリダイレクトしてもいいです.誤打して、誤って伝参に配列を加えればいいです.