From 9c8943eea351b564a487d54784250da6c3d2b63b Mon Sep 17 00:00:00 2001 From: Martial BE Date: Wed, 24 Apr 2024 02:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=20unable=20to=20submit?= =?UTF-8?q?=20creating=20azure=20speech?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/Channel/component/EditModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/views/Channel/component/EditModal.js b/web/src/views/Channel/component/EditModal.js index 36d24719..53d7a3b8 100644 --- a/web/src/views/Channel/component/EditModal.js +++ b/web/src/views/Channel/component/EditModal.js @@ -50,7 +50,7 @@ const validationSchema = Yup.object().shape({ models: Yup.array().min(1, '模型 不能为空'), groups: Yup.array().min(1, '用户组 不能为空'), base_url: Yup.string().when('type', { - is: (value) => [3, 24, 8].includes(value), + is: (value) => [3, 8].includes(value), then: Yup.string().required('渠道API地址 不能为空'), // base_url 是必需的 otherwise: Yup.string() // 在其他情况下,base_url 可以是任意字符串 }),