Commit 8fa3a0a4 by QuentinHsu

perf: prompt when the name of the custom model input already exists

parent 6543905b
......@@ -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 = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment