فهرست منبع

fix: model names must not contain spaces at both ends

QuentinHsu 2 سال پیش
والد
کامیت
d160736a49
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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>