You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
475 B
19 lines
475 B
const actions = {
|
|
/**
|
|
* 通过项目id获取角色信息
|
|
* @param {any} commit
|
|
* @param {object} params 提交的参数
|
|
*/
|
|
async getRoles({ commit }, params) {
|
|
try {
|
|
const res = await uni.$u.api.findShowRole(params);
|
|
commit('setInvisibleRoles', res.invisibleList);
|
|
commit('setVisibleRoles', res.visibleList);
|
|
return res;
|
|
} catch (error) {
|
|
throw error || '获取角色信息失败';
|
|
}
|
|
},
|
|
};
|
|
|
|
export default actions;
|
|
|