From 92c1ed7f1dfc7e2f31379f8b9e9191de5abf185e Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Tue, 5 Mar 2024 12:18:30 +0800 Subject: [PATCH] perf: prompt when the name of the custom model input already exists --- web/src/pages/Channel/EditChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js index 4bff8e9..876015d 100644 --- a/web/src/pages/Channel/EditChannel.js +++ b/web/src/pages/Channel/EditChannel.js @@ -241,7 +241,7 @@ const EditChannel = (props) => { const addCustomModel = () => { if (customModel.trim() === '') return; - if (inputs.models.includes(customModel)) return; + if (inputs.models.includes(customModel)) return showError("该模型已存在!"); let localModels = [...inputs.models]; localModels.push(customModel); let localModelOptions = [];