[fix][V]:完成对接用户名接口

master
Romesum 5 years ago
parent 147bb0f028
commit 3d3c7f3e6b

@ -1,6 +1,6 @@
<template>
<div>
<home :names="homePrarms" user="林大池" ></home>
<home :names="homeParams" :user="nickname"></home>
</div>
</template>
@ -15,15 +15,24 @@
},
data() {
return {
homePrarms:[
{ name:'个人中心',func:()=> {
nickname: '未登录',
homeParams: [
{
name: '个人中心', func: () => {
console.log(this.$router)
this.$router.push('/teacher/personal')
}},
{name:'申请实验室' ,func:()=> {
this.$router.push('/teacher/applyLab')}},
{name:'我的课表',func:()=> {
this.$router.push('/teacher/myCourse')}}
}
},
{
name: '申请实验室', func: () => {
this.$router.push('/teacher/applyLab')
}
},
{
name: '我的课表', func: () => {
this.$router.push('/teacher/myCourse')
}
}
]
}
},
@ -36,8 +45,9 @@
}, 1000)
}
},
mounted() {
console.log(this.homePrarms)
async mounted() {
this.nickname = await get('lb/user/getUserName')
console.log(this.homeParams)
}
}
</script>

Loading…
Cancel
Save