2017-09-14 15:02 | 杨浦刘德华
@ 蓝色的露珠
@左岸忘却
好解决啊,框架既然解决不了,我找了半天,我觉得应该是框架的问题,用js解决算了。
<!--导航菜单-->
<el-menu :default-active=\"$route.path\" id=\"lastclass\" class=\"el-menu-vertical-demo\" @open=\"handleopen\" @close=\"handleclose\" @select=\"handleselect\"
unique-opened router v-show=\"!collapsed\">
//折叠导航栏
collapse:function(){
this.collapsed=!this.collapsed;
var uiwidth = document.getElementById(\'lastclass\');
if(uiwidth.offsetWidth===0){
uiwidth.style.width = \"230px\"
}
},
#33楼
2017-09-14 15:02 | 杨浦刘德华
@ 蓝色的露珠
@左岸忘却
好解决啊,框架既然解决不了,我找了半天,我觉得应该是框架的问题,用js解决算了。
<!--导航菜单-->
<el-menu :default-active=\"$route.path\" id=\"lastclass\" class=\"el-menu-vertical-demo\" @open=\"handleopen\" @close=\"handleclose\" @select=\"handleselect\"
unique-opened router v-show=\"!collapsed\">
//折叠导航栏
collapse:function(){
this.collapsed=!this.collapsed;
var uiwidth = document.getElementById(\'lastclass\');
if(uiwidth.offsetWidth===0){
uiwidth.style.width = \"230px\"
}
},
http://www.cnblogs.com/taylorchen/p/6083099.html#!comments
版权声明
本文仅代表作者观点,不代表百度立场。
本文系作者授权百度百家发表,未经许可,不得转载。



