Parcourir la source

fix: model names must not contain spaces at both ends

QuentinHsu il y a 2 ans
Parent
commit
d160736a49
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      web/src/pages/Channel/EditChannel.js

+ 1 - 1
web/src/pages/Channel/EditChannel.js

@@ -454,7 +454,7 @@ const EditChannel = (props) => {
                             placeholder='输入自定义模型名称'
                             value={customModel}
                             onChange={(value) => {
-                                setCustomModel(value);
+                                setCustomModel(value.trim());
                             }}
                         />
                     </div>