diff --git a/element-vue/src/components/home.vue b/element-vue/src/components/home.vue index 25ce702..175073c 100644 --- a/element-vue/src/components/home.vue +++ b/element-vue/src/components/home.vue @@ -3,7 +3,7 @@ - + @@ -54,17 +54,7 @@ }, methods:{ - async backLogin() { - await get('lb/user/logout') - await showSuccess("退出成功",this) - setTimeout(()=>{ - this.$router.push('/login') - },1000) - }, - goPersonal:function () { - this.$router.push('/teacher/personal') - } } } diff --git a/element-vue/src/pages/teacher/index.vue b/element-vue/src/pages/teacher/index.vue index 9b08e89..ad98d03 100644 --- a/element-vue/src/pages/teacher/index.vue +++ b/element-vue/src/pages/teacher/index.vue @@ -1,6 +1,6 @@ @@ -30,10 +30,14 @@ methods:{ async backLogin() { await get('lb/user/logout') - await showSuccess('退出成功',this) + await showSuccess("退出成功",this) setTimeout(()=>{ this.$router.push('/login') },1000) + + }, + goPersonal:function () { + this.$router.push('/teacher/personal') } }, mounted() {