//html文件
created(){
},
beforeRouteLeave(to, from, next) { //从这个页面出去的时候执行这里
try {
let top = document.documentElement.scrollTop || document.body.scrollTop; // 得到当前高
let scrolldata = {
url: "/Pushtwopage", //记录哪个页面
scrollTop: top, //记录滚动条高度
shop: this.shop,
shopTypeName: this.shopTypeName,
created(){
},
beforeRouteLeave(to, from, next) { //从这个页面出去的时候执行这里
try {
let top = document.documentElement.scrollTop || document.body.scrollTop; // 得到当前高
let scrolldata = {
url: "/Pushtwopage", //记录哪个页面
scrollTop: top, //记录滚动条高度
shop: this.shop,
shopTypeName: this.shopTypeName,