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); }