From 74a869b63357f4c18b0903ee666837fd03d265fd Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 22 Nov 2024 14:34:12 +0800 Subject: [PATCH] bugfix --- .env.development | 2 +- src/layout/components/TagsView/index.vue | 4 +- src/store/getters.js | 1 + src/store/modules/user.js | 5 ++ .../assetsManagement/assetsAuth.vue | 82 ++++++++++++++++--- src/views/auditPages/unitManagement/index.vue | 31 +++---- src/views/system/user/index.vue | 12 +-- 7 files changed, 103 insertions(+), 34 deletions(-) diff --git a/.env.development b/.env.development index bc5430f..a4fa909 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 若依管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.108:9015' +VUE_APP_BASE_API = 'http://192.168.0.119:9015' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 1e5bdc2..ecade49 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -27,7 +27,7 @@
- {{ name }} + {{ nickName }}
@@ -73,7 +73,7 @@ export default { // } ...mapGetters([ 'avatar', - 'name' + 'nickName' ]), }, watch: { diff --git a/src/store/getters.js b/src/store/getters.js index ed5119c..fc62259 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -8,6 +8,7 @@ const getters = { token: state => state.user.token, avatar: state => state.user.avatar, name: state => state.user.name, + nickName: state => state.user.nickName, useer: state => state.user.useer, introduction: state => state.user.introduction, roles: state => state.user.roles, diff --git a/src/store/modules/user.js b/src/store/modules/user.js index dce69d5..6434f40 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -6,6 +6,7 @@ const user = { token: getToken(), id: '', name: '', + nickName: '', avatar: '', roles: [], permissions: [], @@ -22,6 +23,9 @@ const user = { SET_NAME: (state, name) => { state.name = name }, + SET_NICK_NAME: (state, name) => { + state.nickName = name + }, SET_NAMEUSE: (state, name) => { state.useer = name }, @@ -68,6 +72,7 @@ const user = { } commit('SET_ID', user.userId) commit('SET_NAME', user.userName) + commit('SET_NICK_NAME', user.nickName) commit('SET_NAMEUSE', user) commit('SET_AVATAR', avatar) resolve(res) diff --git a/src/views/auditPages/assetsManagement/assetsAuth.vue b/src/views/auditPages/assetsManagement/assetsAuth.vue index 769923e..0af6e14 100644 --- a/src/views/auditPages/assetsManagement/assetsAuth.vue +++ b/src/views/auditPages/assetsManagement/assetsAuth.vue @@ -1,5 +1,6 @@