mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 20:19:40 +08:00
部门编辑截断数据
This commit is contained in:
parent
7234c752df
commit
27e2e1743a
@ -57,7 +57,9 @@ export const DepartmentUpdatePage: React.FC = () => {
|
||||
const checkArr = (departments: any[], id: number) => {
|
||||
const arr = [];
|
||||
for (let i = 0; i < departments[id].length; i++) {
|
||||
if (!departments[departments[id][i].id]) {
|
||||
if (departments[id][i].id === Number(params.depId)) {
|
||||
console.log("截断");
|
||||
} else if (!departments[departments[id][i].id]) {
|
||||
arr.push({
|
||||
label: departments[id][i].name,
|
||||
value: departments[id][i].id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user