src/views/home/widgets/components/ver.vue
@@ -8,7 +8,7 @@ </el-card> <el-drawer title="我是标题" :visible.sync="drawer" :visible="drawer" :direction="direction" :before-close="handleClose"> <span>我来啦!</span> @@ -29,9 +29,7 @@ }, methods: { showDrawer() { alert(2) this.drawer = true; alert(3) }, handleClose(done) { this.$confirm('确认关闭?').then(_ => {