This commit is contained in:
ditiqi 2025-03-02 21:05:58 +08:00
parent 49e34eeeaa
commit 458b24f3f5
1 changed files with 2 additions and 4 deletions

View File

@ -67,13 +67,11 @@ export function MainHeader() {
shape="round"
icon={<PlusOutlined></PlusOutlined>}
onClick={() => {
const url = id
? `/course/${id}/editor`
: "/course/editor";
const url = "/course/editor";
navigate(url);
}}
type="primary">
{id ? "编辑课程" : "创建课程"}
{"创建课程"}
</Button>
</>
)}