工具发布流程和使用申请流程

This commit is contained in:
liukang
2024-08-21 18:07:06 +08:00
parent 9afb6bb1cc
commit 7c099c852b
23 changed files with 2750 additions and 538 deletions

View File

@@ -7,6 +7,7 @@ const getters = {
cachedViews: state => state.tagsView.cachedViews,
token: state => state.user.token,
avatar: state => state.user.avatar,
userInfo: state => state.user.info,
name: state => state.user.name,
nickName: state => state.user.nickName,
introduction: state => state.user.introduction,

View File

@@ -7,6 +7,7 @@ const user = {
id: '',
name: '',
nickName: '',
info: {},
avatar: '',
roles: [],
permissions: []
@@ -33,6 +34,9 @@ const user = {
},
SET_PERMISSIONS: (state, permissions) => {
state.permissions = permissions
},
SET_INFO:(state, info) => {
state.info = info
}
},
@@ -70,6 +74,8 @@ const user = {
commit('SET_NAME', user.userName)
commit('SET_NICK_NAME', user.nickName)
commit('SET_AVATAR', avatar)
commit('SET_INFO', user)
resolve(res)
}).catch(error => {
reject(error)