<template>
<div class="home-container">
<el-menu :collapse="isCollapse">
...
</el-menu>
</div>
<div>
<span @click="isCollapse = !isCollapse"></span>
</div>
</template>
<script>
export default {
data () {
return {
isCollapse: false
}
}
</script>