diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 2ac5827d..3791854f 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -621,7 +621,7 @@ export default { } dataList(allData[random]) })() - this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll")) + // this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll")) }, mounted() { let $this = this; @@ -700,10 +700,10 @@ export default { // window.addEventListener("scroll", this.handleScroll); // 获取年 this.getYears(); - if(this.pageScroll){ - this.queryCondition.pageIndex = parseInt(this.pageScroll.pages) - this.queryCondition.type = this.pageScroll.type - } + // if(this.pageScroll){ + // this.queryCondition.pageIndex = parseInt(this.pageScroll.pages) + // this.queryCondition.type = this.pageScroll.type + // } }, beforeDestroy() { // window.removeEventListener("scroll", this.handleScroll); @@ -793,12 +793,12 @@ export default { apiCase.startReadTimer(refId) } this.$router.push({ path: '/case/detail', query: { id } }); - this.pageScroll = { - pages: this.queryCondition.pageIndex, - scrollTop: window.pageYOffset, - type: this.queryCondition.type - } - sessionStorage.setItem('pagesScroll', JSON.stringify(this.pageScroll)) + // this.pageScroll = { + // pages: this.queryCondition.pageIndex, + // scrollTop: window.pageYOffset, + // type: this.queryCondition.type + // } + // sessionStorage.setItem('pagesScroll', JSON.stringify(this.pageScroll)) }, tylClick() { window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130"); @@ -1300,16 +1300,16 @@ export default { // 给所有的赋值 this.caseList.count = res.result.count; this.caseList.showPagCount = res.result.count; - this.$nextTick(() => { - if(JSON.parse(sessionStorage.getItem("pagesScroll"))){ - window.scrollTo({ - left: 0, - top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop, - behavior: 'smooth' - }) - sessionStorage.removeItem("pagesScroll") - } - }); + // this.$nextTick(() => { + // if(JSON.parse(sessionStorage.getItem("pagesScroll"))){ + // window.scrollTo({ + // left: 0, + // top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop, + // behavior: 'smooth' + // }) + // sessionStorage.removeItem("pagesScroll") + // } + // }); } else { this.$message.error(res.message); }