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') } }