Commit 3ef1e534 by zihan

尝试修复数据有误的bug

parent 386ddd33
......@@ -30,8 +30,9 @@ let getUpdatedData = function (currentData, response) {
break;
}
}
if (!has && response.data.action !== 'CANCEL') {
updateData.push([response.data.price, response.data.count])
if (!has) {
if(response.data.action !== 'CANCEL')
updateData.push([response.data.price, response.data.count]);
} else {
// updateData = [[response.data.price, newCount]];
updateData.push([response.data.price, newCount]);
......
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