diff --git a/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx b/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx index f57cab7..e6abdb3 100644 --- a/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx +++ b/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx @@ -12,6 +12,7 @@ import { } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { useAIConfigStore } from "@/store/useAIConfigStore"; +import { cn } from "@/lib/utils"; interface AIPolishDialogProps { open: boolean; @@ -128,7 +129,12 @@ export default function AIPolishDialog({ return ( { e.preventDefault(); }} @@ -140,11 +146,26 @@ export default function AIPolishDialog({ }} > - - + + AI 润色 - + {isPolishing ? "正在为您润色内容..." : "已经为您优化了内容,请查看效果"} @@ -154,14 +175,34 @@ export default function AIPolishDialog({
-
- +
+ 原始内容
-
+
@@ -169,17 +210,35 @@ export default function AIPolishDialog({
-
- +
+ 润色后的内容
@@ -201,9 +260,10 @@ export default function AIPolishDialog({ "重新生成" )} +