diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue index b9427dad..11ce4b9a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/UserArea.vue @@ -13,7 +13,7 @@ alt="" />
- admin{{user.nickName}}
@@ -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"); },