From d0bac68d3f0d458b8a1b14484cf16aab21b2db2d Mon Sep 17 00:00:00 2001
From: hhhhsc701 <56435672+hhhhsc701@users.noreply.github.com>
Date: Fri, 31 Oct 2025 10:41:19 +0800
Subject: [PATCH] =?UTF-8?q?bugfix:=20sql=E6=8C=87=E5=AE=9A=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=BA=93=20(#45)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/pages/Home/Home.tsx | 6 +++---
scripts/db/data-annotation-init.sql | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
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
+);