mirror of
https://github.com/PlayEdu/backend
synced 2025-07-18 03:59:04 +08:00
Merge branch 'dev' of https://gitee.com/playeduxyz/backend into dev
This commit is contained in:
commit
955966aaa0
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user