mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-02 18:36:40 +00:00
处理(Warning 'Use of eval is strongly discouraged')警告 (#2424)
This commit is contained in:
@@ -93,7 +93,7 @@ export function useFormEvents({
|
||||
} else {
|
||||
nestKeyArray.forEach((nestKey: string) => {
|
||||
try {
|
||||
const value = eval('values' + delimiter + nestKey);
|
||||
const value = nestKey.split('.').reduce((out, item) => out[item], values);
|
||||
if (isDef(value)) {
|
||||
formModel[nestKey] = value;
|
||||
validKeys.push(nestKey);
|
||||
|
Reference in New Issue
Block a user