|
|
|
@ -28,6 +28,7 @@
|
|
|
|
|
import dropDownUser from "~/components/dropDownUser";
|
|
|
|
|
import block from "~/components/block";
|
|
|
|
|
import {get} from "~/utils";
|
|
|
|
|
import {showSuccess} from "~/utils/dialog";
|
|
|
|
|
export default {
|
|
|
|
|
name: "home",
|
|
|
|
|
props:[
|
|
|
|
@ -53,8 +54,13 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
backLogin:function () {
|
|
|
|
|
this.$router.push('/login')
|
|
|
|
|
async backLogin() {
|
|
|
|
|
await get('lb/user/logout')
|
|
|
|
|
await showSuccess("退出成功",this)
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.$router.push('/login')
|
|
|
|
|
},1000)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
goPersonal:function () {
|
|
|
|
|
this.$router.push('/teacher/personal')
|
|
|
|
|