|
@@ -241,8 +241,14 @@ const getDetail = async () => {
|
|
|
roleType: item.type,
|
|
|
};
|
|
|
});
|
|
|
-
|
|
|
- formData.roleConfigInfo = [...singleList, ...Object.values(roleConfigMap)];
|
|
|
+ console.log('singleList:', singleList);
|
|
|
+ console.log('roleConfigMap:', roleConfigMap);
|
|
|
+ let arr = Object.values(roleConfigMap);
|
|
|
+ let rId = singleList[0]?.roleId;
|
|
|
+ formData.roleConfigInfo = [
|
|
|
+ ...(arr.find((item) => item.roleId == rId) ? [] : singleList),
|
|
|
+ ...arr,
|
|
|
+ ];
|
|
|
} else {
|
|
|
const validRoleTypes = Object.keys(roleQuota).filter(
|
|
|
(item) => roleQuota[item]
|