diff --git a/tansci-boot-ui/src/components/layout/Index.vue b/tansci-boot-ui/src/components/layout/Index.vue index fc99d17..1a1750f 100644 --- a/tansci-boot-ui/src/components/layout/Index.vue +++ b/tansci-boot-ui/src/components/layout/Index.vue @@ -10,6 +10,7 @@ headerHeight: '52px', asideWidth: '260px', defaultHeight: null, + isCollapse: false, routers: [], }) @@ -40,6 +41,16 @@ state.defaultHeight = window.innerHeight } + function onCollapse(val:Boolean){ + if(val){ + state.isCollapse = false + state.asideWidth = "260px" + } else { + state.isCollapse = true + state.asideWidth = "110px" + } + } +