1
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script type="module" crossorigin src="/assets/index-C8W5sIyJ.js"></script>
|
<script type="module" crossorigin src="/assets/index-CfFryG8z.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D3fwIbOp.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D3fwIbOp.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -306,14 +306,14 @@ const AdminVideoEngines: React.FC = () => {
|
|||||||
name="maxAudioCount"
|
name="maxAudioCount"
|
||||||
label="最大参考音频数"
|
label="最大参考音频数"
|
||||||
style={{ flex: 1 }}
|
style={{ flex: 1 }}
|
||||||
extra="0 表示不支持音频参考,最大 3 段"
|
extra="0 表示不支持音频参考"
|
||||||
rules={[
|
rules={[
|
||||||
{
|
{
|
||||||
validator: (_, value) => {
|
validator: (_, value) => {
|
||||||
const n = Number(value ?? 0);
|
const n = Number(value ?? 0);
|
||||||
if (!Number.isInteger(n) || n < 0 || n > 3) {
|
// if (!Number.isInteger(n) || n < 0 || n > 3) {
|
||||||
return Promise.reject(new Error('最大参考音频数必须为 0-3 的整数'));
|
// return Promise.reject(new Error('最大参考音频数必须为 0-3 的整数'));
|
||||||
}
|
// }
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user