perf: add notification toasts

This commit is contained in:
Junyan Qin
2025-05-09 22:36:13 +08:00
parent 337090e7cb
commit df700ec7c2
17 changed files with 131 additions and 71 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
import { toast } from "sonner";
export default function LLMConfigPage() {
const [cardList, setCardList] = useState<LLMCardVO[]>([]);
@@ -56,8 +56,8 @@ export default function LLMConfigPage() {
setCardList(llmModelList);
})
.catch((err) => {
// TODO error toast
console.error('get LLM model list error', err);
toast.error("获取模型列表失败:" + err.message);
});
}