maven
2025-08-13 c1765373914b72a69ac24dca33250b7dc5019465
src/utils/util.js
@@ -86,7 +86,21 @@
      'aplication/zip': 'zpi',
    }
  }
 export const deepCopySameProperties = (source, target) =>{
    for (const key in source) {
        if (target.hasOwnProperty(key)) {
            if (typeof source[key] === 'object' && source[key] !== null &&
                typeof target[key] === 'object' && target[key] !== null) {
                // 递归处理对象
                deepCopySameProperties(source[key], target[key]);
            } else {
                // 基本类型直接赋值
                target[key] = source[key];
            }
        }
    }
    return target;
}
  export function filterArr(arr) {
      return arr.filter(item => item.flag !== false);
  }