zs преди 2 години
родител
ревизия
e32265460a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      pagesHome/order/detail.vue

+ 1 - 1
pagesHome/order/detail.vue

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