Browse Source

更新用户姓名

develop
little4 2 months ago
parent
commit
0ebee6c784
  1. 9
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue

9
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue

@ -13,7 +13,7 @@
alt=""
/>
<p class="title">
<span class="txt">admin</span
<span class="txt">{{user.nickName}}</span
><i class="menuIcon el-icon-arrow-down el-icon--right"></i>
</p>
</span>
@ -45,6 +45,7 @@ import Search from "@/components/HeaderSearch";
import RuoYiGit from "@/components/RuoYi/Git";
// import BigScreen from '@/components/bigScreen'
import RuoYiDoc from "@/components/RuoYi/Doc";
import { getUserProfile } from "@/api/system/user";
export default {
data() {
return {
@ -74,6 +75,7 @@ export default {
},
visible: false,
recordForm: {},
user: {},
};
},
components: {
@ -120,6 +122,11 @@ export default {
this.openRecent();
}
},
getUser() {
getUserProfile().then(response => {
this.user = response.data;
});
},
toggleSideBar() {
this.$store.dispatch("app/toggleSideBar");
},

Loading…
Cancel
Save