diff --git a/sheep/helper/utils.js b/sheep/helper/utils.js index bcb5d25e..15dec799 100644 --- a/sheep/helper/utils.js +++ b/sheep/helper/utils.js @@ -45,7 +45,7 @@ export function last(data) { } export function cloneDeep(obj) { - const d = isArray(obj) ? obj : {}; + const d = isArray(obj) ? [...obj] : {}; if (isObject(obj)) { for (const key in obj) {