feat(ability): enhance FixAbility function

This commit is contained in:
CaIon
2025-07-08 18:33:32 +08:00
parent f8d67a62a2
commit 8759ef012f
5 changed files with 43 additions and 68 deletions

View File

@@ -240,7 +240,7 @@ const EditChannel = (props) => {
if (isEdit) {
// 如果是编辑模式使用已有的channel id获取模型列表
const res = await API.get('/api/channel/fetch_models/' + channelId);
if (res.data && res.data?.success) {
if (res.data && res.data.success) {
models.push(...res.data.data);
} else {
err = true;