|
@@ -4511,20 +4511,20 @@ export default {
|
|
if (chapindex < _unitIndex) {
|
|
if (chapindex < _unitIndex) {
|
|
this.isDelete = 2;
|
|
this.isDelete = 2;
|
|
this.unitIndex--;
|
|
this.unitIndex--;
|
|
- }
|
|
|
|
- } else if (
|
|
|
|
- _unitJson2[this.unitIndex].chapterInfo[0].chapterid !=
|
|
|
|
- _unitJson[this.unitIndex].chapterInfo[0].chapterid
|
|
|
|
- ) {
|
|
|
|
- this.isDelete = 2;
|
|
|
|
- for (let n = 0; n < _unitJson.length; n++) {
|
|
|
|
- if (
|
|
|
|
- _unitJson2[this.unitIndex].chapterInfo[0].chapterid ==
|
|
|
|
- _unitJson[n].chapterInfo[0].chapterid
|
|
|
|
- ) {
|
|
|
|
- this.unitIndex = n;
|
|
|
|
- _unitJson[n] = _unitJson2[this.unitIndex];
|
|
|
|
- break;
|
|
|
|
|
|
+ } else if (
|
|
|
|
+ _unitJson2[this.unitIndex].chapterInfo[0].chapterid !=
|
|
|
|
+ _unitJson[this.unitIndex].chapterInfo[0].chapterid
|
|
|
|
+ ) {
|
|
|
|
+ this.isDelete = 2;
|
|
|
|
+ for (let n = 0; n < _unitJson.length; n++) {
|
|
|
|
+ if (
|
|
|
|
+ _unitJson2[this.unitIndex].chapterInfo[0].chapterid ==
|
|
|
|
+ _unitJson[n].chapterInfo[0].chapterid
|
|
|
|
+ ) {
|
|
|
|
+ this.unitIndex = n;
|
|
|
|
+ _unitJson[n] = _unitJson2[this.unitIndex];
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|