|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<home :names="homePrarms" user="林大池" ></home>
|
|
|
|
<home :names="homePrarms" user="林大池" @back="backLogin" @goPersonal="goPersonal"></home>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -30,10 +30,14 @@
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
async backLogin() {
|
|
|
|
async backLogin() {
|
|
|
|
await get('lb/user/logout')
|
|
|
|
await get('lb/user/logout')
|
|
|
|
await showSuccess('退出成功',this)
|
|
|
|
await showSuccess("退出成功",this)
|
|
|
|
setTimeout(()=>{
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.$router.push('/login')
|
|
|
|
this.$router.push('/login')
|
|
|
|
},1000)
|
|
|
|
},1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
goPersonal:function () {
|
|
|
|
|
|
|
|
this.$router.push('/teacher/personal')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|