Browse Source

fix[Utils]: fixed deepClone error msg (#1748)

pull/1760/head
Yuga Sun 6 years ago committed by 花裤衩
parent
commit
ae6bbf7858
  1. 2
      src/utils/index.js

2
src/utils/index.js

@ -274,7 +274,7 @@ export function debounce(func, wait, immediate) {
*/
export function deepClone(source) {
if (!source && typeof source !== 'object') {
throw new Error('error arguments', 'shallowClone')
throw new Error('error arguments', 'deepClone')
}
const targetObj = source.constructor === Array ? [] : {}
Object.keys(source).forEach(keys => {

Loading…
Cancel
Save