|
@@ -466,7 +466,7 @@
|
|
const that = this;
|
|
const that = this;
|
|
if (e.length > 0) {
|
|
if (e.length > 0) {
|
|
let data = e.find(i => i.num > 0);
|
|
let data = e.find(i => i.num > 0);
|
|
- let dataIndex = e.findIndex(i => i.id == data.id);
|
|
|
|
|
|
+ let dataIndex = e.findIndex(i => i._id == data._id);
|
|
if (data) {
|
|
if (data) {
|
|
that.$set(that, `specsInfo`, data);
|
|
that.$set(that, `specsInfo`, data);
|
|
that.$set(that, `is_specs`, dataIndex);
|
|
that.$set(that, `is_specs`, dataIndex);
|