add
This commit is contained in:
parent
49e34eeeaa
commit
458b24f3f5
|
@ -67,13 +67,11 @@ export function MainHeader() {
|
||||||
shape="round"
|
shape="round"
|
||||||
icon={<PlusOutlined></PlusOutlined>}
|
icon={<PlusOutlined></PlusOutlined>}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const url = id
|
const url = "/course/editor";
|
||||||
? `/course/${id}/editor`
|
|
||||||
: "/course/editor";
|
|
||||||
navigate(url);
|
navigate(url);
|
||||||
}}
|
}}
|
||||||
type="primary">
|
type="primary">
|
||||||
{id ? "编辑课程" : "创建课程"}
|
{"创建课程"}
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue