fix: fix unable to set zero value for base url & model mapping

This commit is contained in:
JustSong
2023-09-18 22:07:17 +08:00
parent 92001986db
commit 159b9e3369
5 changed files with 28 additions and 17 deletions

View File

@@ -183,9 +183,6 @@ const EditChannel = () => {
if (localInputs.type === 18 && localInputs.other === '') {
localInputs.other = 'v2.1';
}
if (localInputs.model_mapping === '') {
localInputs.model_mapping = '{}';
}
let res;
localInputs.models = localInputs.models.join(',');
localInputs.group = localInputs.groups.join(',');