Commit b2cac278 authored by 李腾's avatar 李腾

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

parent 9d5e474f
...@@ -257,20 +257,21 @@ const UpdateStatusModal = (props, ref) => { ...@@ -257,20 +257,21 @@ const UpdateStatusModal = (props, ref) => {
}; };
// eslint-disable-next-line no-restricted-syntax // eslint-disable-next-line no-restricted-syntax
for (const key in item) { // for (const key in item) {
if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) { // if (typeof item[key] !== 'object' && item[key] !== packageList[index][key]) {
console.log('修改了物流信息'); // console.log('修改了物流信息');
updateAttr(); // updateAttr();
break; // break;
} else if ( // } else if (
typeof item[key] === 'object' && // typeof item[key] === 'object' &&
JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key]) // JSON.stringify(item[key]) !== JSON.stringify(packageList[index][key])
) { // ) {
console.log('修改了选择的商品'); // console.log('修改了选择的商品');
updateAttr(); // updateAttr();
break; // break;
} // }
} // }
updateAttr();
}); });
const params = { 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