Merge pull request !16 from 白书科技/fix/1101
This commit is contained in:
白书科技 2023-11-13 03:56:54 +00:00 committed by Gitee
commit 42f5d77e4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 6 additions and 6 deletions

View File

@ -234,7 +234,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
const arr = [...chapters];
if (arr[index].id) {
courseChapter
.updateCourseChapter(id, Number(arr[index].id), value, arr.length)
.updateCourseChapter(id, Number(arr[index].id), value, index + 1)
.then((res: any) => {
console.log("ok");
getDetail();

View File

@ -149,12 +149,12 @@ export const SystemAdministratorCreate: React.FC<PropInterface> = ({
<Form.Item
label="邮箱"
name="email"
rules={[{ required: true, message: "请输入员邮箱!" }]}
rules={[{ required: true, message: "请输入管理员邮箱!" }]}
>
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入员邮箱"
placeholder="请输入管理员邮箱"
/>
</Form.Item>
<Form.Item

View File

@ -111,7 +111,7 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
<>
{open ? (
<Modal
title="编辑管理员"
title="编辑管理员"
centered
forceRender
open={true}
@ -168,12 +168,12 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
<Form.Item
label="邮箱"
name="email"
rules={[{ required: true, message: "请输入员邮箱!" }]}
rules={[{ required: true, message: "请输入管理员邮箱!" }]}
>
<Input
allowClear
style={{ width: 200 }}
placeholder="请输入员邮箱"
placeholder="请输入管理员邮箱"
/>
</Form.Item>
<Form.Item label="密码" name="password">