Commit 998388bb authored by 季圣华's avatar 季圣华
Browse files

调整页面的高度,改为自适应(优化)

parent fdfd69c2
...@@ -16,7 +16,7 @@ export const JeecgListMixin = { ...@@ -16,7 +16,7 @@ export const JeecgListMixin = {
//token header //token header
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)}, tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
/*卡片样式 */ /*卡片样式 */
cardStyle: 'height:' + (document.documentElement.clientHeight-125) + 'px', cardStyle: '',
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */ /* 查询条件-请不要在queryParam中声明非字符串值的属性 */
queryParam: {}, queryParam: {},
/* 数据源 */ /* 数据源 */
...@@ -63,6 +63,9 @@ export const JeecgListMixin = { ...@@ -63,6 +63,9 @@ export const JeecgListMixin = {
} }
}, },
created() { created() {
if(this.isDesktop()) {
this.cardStyle = 'height:' + (document.documentElement.clientHeight-125) + 'px'
}
if(!this.disableMixinCreated){ if(!this.disableMixinCreated){
//console.log(' -- mixin created -- ') //console.log(' -- mixin created -- ')
this.loadData(); this.loadData();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment