Commit b2cac278 authored by 李腾's avatar 李腾

fix: 修改更新物流数据格式

parent 9d5e474f
......@@ -257,20 +257,21 @@ const UpdateStatusModal = (props, ref) => {
};
// eslint-disable-next-line no-restricted-syntax
for (const key in item) {
if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) {
console.log('修改了物流信息');
updateAttr();
break;
} else if (
typeof item[key] === 'object' &&
JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key])
) {
console.log('修改了选择的商品');
updateAttr();
break;
}
}
// for (const key in item) {
// if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) {
// console.log('修改了物流信息');
// updateAttr();
// break;
// } else if (
// typeof item[key] === 'object' &&
// JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key])
// ) {
// console.log('修改了选择的商品');
// updateAttr();
// break;
// }
// }
updateAttr();
});
const params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment