This commit is contained in:
禺狨 2023-03-15 18:18:41 +08:00
commit 955966aaa0
4 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ export const DepartmentCreate: React.FC<PropInterface> = ({
if (JSON.stringify(departments) !== "{}") {
const new_arr: Option[] = checkArr(departments, 0);
new_arr.unshift({
label: "",
label: "作为一级部门",
value: 0,
});
setDepartments(new_arr);

View File

@ -43,7 +43,7 @@ export const DepartmentUpdate: React.FC<PropInterface> = ({
if (JSON.stringify(departments) !== "{}") {
const new_arr: Option[] = checkArr(departments, 0);
new_arr.unshift({
label: "",
label: "作为一级部门",
value: 0,
});
setDepartments(new_arr);

View File

@ -40,7 +40,7 @@ export const ResourceCategoryCreate: React.FC<PropInterface> = ({
if (JSON.stringify(categories) !== "{}") {
const new_arr: Option[] = checkArr(categories, 0);
new_arr.unshift({
label: "",
label: "作为一级分类",
value: 0,
});
setCategories(new_arr);

View File

@ -43,7 +43,7 @@ export const ResourceCategoryUpdate: React.FC<PropInterface> = ({
if (JSON.stringify(categories) !== "{}") {
const new_arr: Option[] = checkArr(categories, 0);
new_arr.unshift({
label: "",
label: "作为一级分类",
value: 0,
});
setCategories(new_arr);