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" 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>
</> </>
)} )}