diff --git a/element-vue/src/components/home.vue b/element-vue/src/components/home.vue index 3184d42..410ab95 100644 --- a/element-vue/src/components/home.vue +++ b/element-vue/src/components/home.vue @@ -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')