add
This commit is contained in:
parent
49e34eeeaa
commit
458b24f3f5
|
@ -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>
|
||||
</>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue