From 147bb0f0281dd8b2b03b5d484e4b0513be5d7db7 Mon Sep 17 00:00:00 2001 From: Romesum Date: Thu, 7 May 2020 01:45:45 +0800 Subject: [PATCH] =?UTF-8?q?[fix][V]=EF=BC=9A=E5=AE=8C=E6=88=90=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5navbar=E7=94=A8=E6=88=B7=E5=90=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- element-vue/src/components/teacher/navBar.vue | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/element-vue/src/components/teacher/navBar.vue b/element-vue/src/components/teacher/navBar.vue index ecc0de2..301ef05 100644 --- a/element-vue/src/components/teacher/navBar.vue +++ b/element-vue/src/components/teacher/navBar.vue @@ -12,11 +12,12 @@ 申请实验室 - 我的申请记录 + 我的申请记录 + 课程管理 我的课表 - + @@ -25,10 +26,12 @@ import dropDownUser from "~/components/dropDownUser"; import {get} from "~/utils"; import {showSuccess} from "~/utils/dialog"; + export default { data() { return { - activeIndex: '1' + activeIndex: '1', + nickname: '' }; }, methods: { @@ -37,26 +40,26 @@ }, async backLogin() { await get('lb/user/logout') - await showSuccess("退出成功",this) - setTimeout(()=>{ + await showSuccess("退出成功", this) + setTimeout(() => { this.$router.push('/login') - },1000) + }, 1000) }, - goPersonal:function () { + goPersonal: function () { this.$router.push('/teacher/personal') } }, - components:{ + components: { dropDownUser }, - mounted() { - + async mounted() { + this.nickname = await get('lb/user/getUserName') } }