|
@@ -7293,9 +7293,18 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
|
|
|
)
|
|
|
);
|
|
|
+ let b = JSON.parse(
|
|
|
+ JSON.stringify(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
|
|
|
+ )
|
|
|
+ )
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
|
|
|
+ if((index - 1) == 0){
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1].chapterData = a.chapterData;
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].chapterData = b.chapterData;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
if (
|
|
@@ -7307,9 +7316,19 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
|
|
|
)
|
|
|
);
|
|
|
+ let b = JSON.parse(
|
|
|
+ JSON.stringify(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
|
|
|
+ )
|
|
|
+ )
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
|
|
|
+
|
|
|
+ if((index) == 0){
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1].chapterData = a.chapterData;
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].chapterData = b.chapterData;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.$forceUpdate();
|