Fix syntax

This commit is contained in:
mashirozx 2021-07-31 12:30:21 +08:00
parent d82fc5fb99
commit 190208ce75

View File

@ -80,7 +80,7 @@ export default defineComponent({
() => props.result, () => props.result,
(resultProp) => { (resultProp) => {
arrayRef.value = cloneDeep(arrayRef.value).map((item) => false) arrayRef.value = cloneDeep(arrayRef.value).map((item) => false)
if (resultProp !== NaN) arrayRef.value[resultProp] = true if (!isNaN(resultProp)) arrayRef.value[resultProp] = true
} }
) )