iframe高度优化

This commit is contained in:
季圣华
2021-09-05 01:35:09 +08:00
parent 0ed2101e74
commit 6abbddea58
2 changed files with 16 additions and 11 deletions

View File

@@ -61,7 +61,6 @@ export const JeecgListMixin = {
}
},
created() {
this.initScroll()
if(!this.disableMixinCreated){
//console.log(' -- mixin created -- ')
this.loadData();
@@ -69,16 +68,11 @@ export const JeecgListMixin = {
this.initDictConfig();
//初始化按钮权限
this.initActiveBtnStr();
//初始化列表横向或纵向滚动
this.initScroll()
}
},
methods:{
initScroll() {
if (this.isMobile()) {
this.scroll.y = ''
} else {
this.scroll.y = document.documentElement.clientHeight-330
}
},
loadData(arg) {
if(!this.url.list){
this.$message.error("请设置url.list属性!")
@@ -362,6 +356,13 @@ export const JeecgListMixin = {
}
}
}
},
initScroll() {
if (this.isMobile()) {
this.scroll.y = ''
} else {
this.scroll.y = document.documentElement.clientHeight-330
}
}
}