返回上一页用的是
this.$router.go(-1)那么只能在返回之前将参数放在localStorage里面
localStorage.setItem('searchKeyword', this.keyword)返回上一页面之后,拿到数据,再清空localStorage
let searchKeyword = localStorage.getItem('searchKeyword') localStorage.setItem('searchKeyword', '')
返回上一页用的是
this.$router.go(-1)那么只能在返回之前将参数放在localStorage里面
localStorage.setItem('searchKeyword', this.keyword)返回上一页面之后,拿到数据,再清空localStorage
let searchKeyword = localStorage.getItem('searchKeyword') localStorage.setItem('searchKeyword', '')
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。