From 458b24f3f5ae7c276fdb023c0236277ed5ff653c Mon Sep 17 00:00:00 2001 From: ditiqi Date: Sun, 2 Mar 2025 21:05:58 +0800 Subject: [PATCH] add --- apps/web/src/app/main/layout/MainHeader.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/main/layout/MainHeader.tsx b/apps/web/src/app/main/layout/MainHeader.tsx index 7536e95..91b1771 100755 --- a/apps/web/src/app/main/layout/MainHeader.tsx +++ b/apps/web/src/app/main/layout/MainHeader.tsx @@ -67,13 +67,11 @@ export function MainHeader() { shape="round" icon={} onClick={() => { - const url = id - ? `/course/${id}/editor` - : "/course/editor"; + const url = "/course/editor"; navigate(url); }} type="primary"> - {id ? "编辑课程" : "创建课程"} + {"创建课程"} )}