diff --git a/Yi.Vue2.x/src/api/accountApi.js b/Yi.Vue2.x/src/api/accountApi.js index 30744d7a..fdd6f285 100644 --- a/Yi.Vue2.x/src/api/accountApi.js +++ b/Yi.Vue2.x/src/api/accountApi.js @@ -41,6 +41,13 @@ export default { method: 'put', data: { user, newPassword } }) + }, + getUserAllInfo() + { + return myaxios({ + url: `/Account/getUserAllInfo`, + method: 'get' + }) } } \ No newline at end of file diff --git a/Yi.Vue2.x/src/layouts/default/widgets/Account.vue b/Yi.Vue2.x/src/layouts/default/widgets/Account.vue index a6218329..79d972b9 100644 --- a/Yi.Vue2.x/src/layouts/default/widgets/Account.vue +++ b/Yi.Vue2.x/src/layouts/default/widgets/Account.vue @@ -16,7 +16,7 @@ - + @@ -40,10 +40,10 @@ export default { name: "DefaultAccount", data: () => ({ profile: [ - { title: "用户信息" }, + { title: "用户信息",router:"/userInfo" }, { title: "设置" }, { divider: true }, - { title: "登出" }, + { title: "登出",router:"/login" }, ], }), }; diff --git a/Yi.Vue2.x/src/views/userInfo.vue b/Yi.Vue2.x/src/views/userInfo.vue index cd11f4d1..3d271a5c 100644 --- a/Yi.Vue2.x/src/views/userInfo.vue +++ b/Yi.Vue2.x/src/views/userInfo.vue @@ -7,7 +7,7 @@
- {{ userInfo.username }} + {{ userInfo.userName }}

{{ userInfo.nick }}

@@ -61,7 +61,7 @@ @@ -154,12 +154,12 @@ {{ item.role_name }}{{ item.roleName }} @@ -178,7 +178,7 @@ cols="6" sm="3" md="1" - >{{ item.menu_name }}{{ item.menuName }} @@ -264,7 +264,6 @@