|
@@ -4435,7 +4435,7 @@ export default {
|
|
|
let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
|
|
|
let _unitJson = [];
|
|
|
let _chapAarry = [];
|
|
|
- let _unitIndex = this.unitIndex;
|
|
|
+ let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
|
|
|
let index = 1;
|
|
|
let chapindex;
|
|
|
if (_unitJson2.length > unitJson.length) {
|
|
@@ -4515,23 +4515,23 @@ export default {
|
|
|
this.isDelete = 2;
|
|
|
this.unitIndex--;
|
|
|
} else if (
|
|
|
- _unitJson2[this.unitIndex].chapterInfo[0].chapterid !=
|
|
|
- _unitJson[this.unitIndex].chapterInfo[0].chapterid
|
|
|
+ _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
|
|
|
+ _unitJson[_unitIndex].chapterInfo[0].chapterid
|
|
|
) {
|
|
|
this.isDelete = 2;
|
|
|
for (let n = 0; n < _unitJson.length; n++) {
|
|
|
if (
|
|
|
- _unitJson2[this.unitIndex].chapterInfo[0].chapterid ==
|
|
|
+ _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
|
|
|
_unitJson[n].chapterInfo[0].chapterid
|
|
|
) {
|
|
|
this.unitIndex = n;
|
|
|
- _unitJson[n] = _unitJson2[this.unitIndex];
|
|
|
+ _unitJson[n] = _unitJson2[_unitIndex];
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else if (index != 2) {
|
|
|
- _unitJson[this.unitIndex] = _unitJson2[this.unitIndex];
|
|
|
+ _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
|
|
|
}
|
|
|
if (index == 1) {
|
|
|
this.unitJson = _unitJson;
|