<template>
  <div>
   <!-- {{$store.state.app.sidebar}}
    <el-button @click="$store.dispatch('app/toggleSideBar')">菜单</el-button> -->

    <!-- <div class="openSidebar">
      <sidebar />
    </div> -->

  </div>
</template>

<script setup>
const { proxy } = getCurrentInstance();
const store = useStore();

function toggleSideBar() {
  store.dispatch("app/toggleSideBar");
}

nextTick(() => {
  proxy.$store.state.app.sidebar.opened = true;
});
</script>