This commit is contained in:
xing 2020-06-16 15:32:11 +08:00
parent 7f9bcd7000
commit e4f1212a42

View File

@ -1,12 +1,18 @@
<template> <template>
<div> <div>
home组件 <el-button type="info" @click="logout">退出</el-button>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'Home' name: 'Home',
methods: {
logout () {
sessionStorage.clear()
this.$router.push('/login')
}
}
} }
</script> </script>