diff --git a/frontend/src/pages/Home/Home.tsx b/frontend/src/pages/Home/Home.tsx index b9133f6..0027550 100644 --- a/frontend/src/pages/Home/Home.tsx +++ b/frontend/src/pages/Home/Home.tsx @@ -281,11 +281,11 @@ export default function WelcomePage() {
navigate("/chat")} - className="cursor-pointer rounded px-4 py-2 inline-flex items-center bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white shadow-lg" + onClick={handleChatClick} + className="cursor-pointer rounded px-4 py-2 inline-flex items-center bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white shadow-lg" > - 开始对话 + {isChecking ? '检查中...' : '开始对话'}
diff --git a/scripts/db/data-annotation-init.sql b/scripts/db/data-annotation-init.sql index 09de2c6..97777f2 100644 --- a/scripts/db/data-annotation-init.sql +++ b/scripts/db/data-annotation-init.sql @@ -1,3 +1,5 @@ +use datamate; + CREATE TABLE t_dm_annotation_templates ( id VARCHAR(36) PRIMARY KEY, name VARCHAR(32) NOT NULL COMMENT '模板名称', @@ -16,4 +18,4 @@ CREATE TABLE t_dm_labeling_projects ( progress JSON, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', deleted_at TIMESTAMP NULL COMMENT '删除时间(软删除)' -); \ No newline at end of file +);