修复 linux 依赖是否存在判断

This commit is contained in:
whyour
2023-07-24 22:02:26 +08:00
parent 04edd97967
commit 8b0dedaf8c
8 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ const Dependence = () => {
const handleDependence = (dependence: any) => {
const result = [...value];
if (Array.isArray(dependence)) {
result.push(...dependence);
result.unshift(...dependence);
} else {
const index = value.findIndex((x) => x.id === dependence.id);
if (index !== -1) {