fix: 修复创建流水线时,无法根据dns类型默认正确的dns授权的bug

Closes https://github.com/certd/certd/issues/97
This commit is contained in:
xiaojunnuo
2024-07-24 00:42:33 +08:00
parent f7fc06e657
commit a2c43b50a6
5 changed files with 38 additions and 2 deletions
@@ -0,0 +1,19 @@
import _ from "lodash-es";
import { compute } from "@fast-crud/fast-crud";
export function useReference(form: any) {
if (!form.reference) {
return;
}
for (const reference of form.reference) {
debugger;
_.set(
form,
reference.dest,
compute<any>((scope) => {
debugger;
return _.get(scope, reference.src);
})
);
}
}