mirror of
https://github.com/PlayEdu/backend
synced 2025-07-20 17:49:35 +08:00
update
This commit is contained in:
parent
7862efa0d4
commit
ad58efae98
@ -40,7 +40,7 @@ export const DepartmentCreate: React.FC<PropInterface> = ({
|
|||||||
if (JSON.stringify(departments) !== "{}") {
|
if (JSON.stringify(departments) !== "{}") {
|
||||||
const new_arr: Option[] = checkArr(departments, 0);
|
const new_arr: Option[] = checkArr(departments, 0);
|
||||||
new_arr.unshift({
|
new_arr.unshift({
|
||||||
label: "无",
|
label: "作为一级部门",
|
||||||
value: 0,
|
value: 0,
|
||||||
});
|
});
|
||||||
setDepartments(new_arr);
|
setDepartments(new_arr);
|
||||||
|
@ -43,7 +43,7 @@ export const DepartmentUpdate: React.FC<PropInterface> = ({
|
|||||||
if (JSON.stringify(departments) !== "{}") {
|
if (JSON.stringify(departments) !== "{}") {
|
||||||
const new_arr: Option[] = checkArr(departments, 0);
|
const new_arr: Option[] = checkArr(departments, 0);
|
||||||
new_arr.unshift({
|
new_arr.unshift({
|
||||||
label: "无",
|
label: "作为一级部门",
|
||||||
value: 0,
|
value: 0,
|
||||||
});
|
});
|
||||||
setDepartments(new_arr);
|
setDepartments(new_arr);
|
||||||
|
@ -40,7 +40,7 @@ export const ResourceCategoryCreate: React.FC<PropInterface> = ({
|
|||||||
if (JSON.stringify(categories) !== "{}") {
|
if (JSON.stringify(categories) !== "{}") {
|
||||||
const new_arr: Option[] = checkArr(categories, 0);
|
const new_arr: Option[] = checkArr(categories, 0);
|
||||||
new_arr.unshift({
|
new_arr.unshift({
|
||||||
label: "无",
|
label: "作为一级分类",
|
||||||
value: 0,
|
value: 0,
|
||||||
});
|
});
|
||||||
setCategories(new_arr);
|
setCategories(new_arr);
|
||||||
|
@ -43,7 +43,7 @@ export const ResourceCategoryUpdate: React.FC<PropInterface> = ({
|
|||||||
if (JSON.stringify(categories) !== "{}") {
|
if (JSON.stringify(categories) !== "{}") {
|
||||||
const new_arr: Option[] = checkArr(categories, 0);
|
const new_arr: Option[] = checkArr(categories, 0);
|
||||||
new_arr.unshift({
|
new_arr.unshift({
|
||||||
label: "无",
|
label: "作为一级分类",
|
||||||
value: 0,
|
value: 0,
|
||||||
});
|
});
|
||||||
setCategories(new_arr);
|
setCategories(new_arr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user