can set global value to rules

This commit is contained in:
Gabe Yuan
2023-08-08 14:09:35 +08:00
parent 7f0b660716
commit 5041743117

View File

@@ -24,7 +24,7 @@ import FileDownloadIcon from "@mui/icons-material/FileDownload";
import FileUploadIcon from "@mui/icons-material/FileUpload";
function RuleFields({ rule, rules, setShow }) {
const initFormValues = rule || DEFAULT_RULE;
const initFormValues = rule || { ...DEFAULT_RULE, transOpen: "true" };
const editMode = !!rule;
const i18n = useI18n();