调整页面的高度,改为自适应(优化)
This commit is contained in:
parent
fdfd69c202
commit
998388bb62
@ -16,7 +16,7 @@ export const JeecgListMixin = {
|
||||
//token header
|
||||
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
|
||||
/*卡片样式 */
|
||||
cardStyle: 'height:' + (document.documentElement.clientHeight-125) + 'px',
|
||||
cardStyle: '',
|
||||
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
|
||||
queryParam: {},
|
||||
/* 数据源 */
|
||||
@ -63,6 +63,9 @@ export const JeecgListMixin = {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if(this.isDesktop()) {
|
||||
this.cardStyle = 'height:' + (document.documentElement.clientHeight-125) + 'px'
|
||||
}
|
||||
if(!this.disableMixinCreated){
|
||||
//console.log(' -- mixin created -- ')
|
||||
this.loadData();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user