Просмотр исходного кода

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

QuentinHsu 2 лет назад
Родитель
Сommit
92c1ed7f1d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/src/pages/Channel/EditChannel.js

+ 1 - 1
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 = [];