mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
测评图片
This commit is contained in:
@@ -557,6 +557,21 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll"))
|
||||
// if(this.pageScroll){
|
||||
// this.queryCondition.pageIndex = parseInt(this.pageScroll.pages)
|
||||
// this.queryCondition.type = this.pageScroll.type
|
||||
// this.$nextTick(() => {
|
||||
// if(JSON.parse(sessionStorage.getItem("pagesScroll"))){
|
||||
// window.scrollTo({
|
||||
// left: 0,
|
||||
// top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop,
|
||||
// })
|
||||
// sessionStorage.removeItem("pagesScroll")
|
||||
// }
|
||||
// });
|
||||
// return
|
||||
// }
|
||||
(() => {
|
||||
const allData = {
|
||||
0: {
|
||||
@@ -621,7 +636,6 @@ export default {
|
||||
}
|
||||
dataList(allData[random])
|
||||
})()
|
||||
// this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll"))
|
||||
},
|
||||
mounted() {
|
||||
let $this = this;
|
||||
@@ -796,7 +810,7 @@ export default {
|
||||
// this.pageScroll = {
|
||||
// pages: this.queryCondition.pageIndex,
|
||||
// scrollTop: window.pageYOffset,
|
||||
// type: this.queryCondition.type
|
||||
// type: this.queryCondition.type,
|
||||
// }
|
||||
// sessionStorage.setItem('pagesScroll', JSON.stringify(this.pageScroll))
|
||||
},
|
||||
@@ -1300,16 +1314,6 @@ 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")
|
||||
// }
|
||||
// });
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user