From 05faa04f934322a50b4a3b62d440cfe08ba69a37 Mon Sep 17 00:00:00 2001 From: aiyadc <565548447@qq.com> Date: Thu, 7 May 2020 18:01:48 +0800 Subject: [PATCH] =?UTF-8?q?home=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- element-vue/src/components/home.vue | 12 +----------- element-vue/src/pages/teacher/index.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 13 deletions(-) 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() {