<template>
  <div>
    <el-button @click='push'>工作台</el-button>
    <el-button @click='drawer = true'>open</el-button>

    <el-drawer v-model="drawer" title="I am the title" :with-header="false">
      <span>Hi there!</span>
    </el-drawer>
  </div>
</template>

<route>
  {
    name: '工作台'
  }
</route>

<script>
export default {
  name: 'index',
  data () {
    return {
      drawer: false
    }
  },
  methods: {
    push () {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>

</style>
