功能更新:新增Bug管理模块,完善用户角色分配,优化项目设置
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getRoleList } from '@/api/rbacApi'
|
||||
import { getRoleList, parseMenusFromRoleListResponse } from '@/api/rbacApi'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
@@ -26,8 +26,7 @@ export default {
|
||||
return
|
||||
}
|
||||
getRoleList({ roleId }).then(res => {
|
||||
const menus = res && Array.isArray(res.data) ? res.data : []
|
||||
this.$store.commit('SetUserMenus', menus)
|
||||
this.$store.commit('SetUserMenus', parseMenusFromRoleListResponse(res))
|
||||
}).catch(() => {})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user