|
@@ -115,8 +115,9 @@ export default {
|
|
|
// 向上移动
|
|
|
upMove(opIndex, index) {
|
|
|
if (this.curQue.option[opIndex].correctWordsList.length < 1) {
|
|
|
- this.curQue.option[opIndex].correctWordsList =
|
|
|
- this.curQue.option[opIndex].detail.wordsList;
|
|
|
+ this.curQue.option[opIndex].correctWordsList = JSON.parse(
|
|
|
+ JSON.stringify(this.curQue.option[opIndex].detail.wordsList)
|
|
|
+ );
|
|
|
}
|
|
|
if (index > 0) {
|
|
|
let obj = this.curQue.option[opIndex].detail.wordsList[index - 1];
|
|
@@ -132,8 +133,9 @@ export default {
|
|
|
// 向下移动
|
|
|
downMove(opIndex, index) {
|
|
|
if (this.curQue.option[opIndex].correctWordsList.length < 1) {
|
|
|
- this.curQue.option[opIndex].correctWordsList =
|
|
|
- this.curQue.option[opIndex].detail.wordsList;
|
|
|
+ this.curQue.option[opIndex].correctWordsList = JSON.parse(
|
|
|
+ JSON.stringify(this.curQue.option[opIndex].detail.wordsList)
|
|
|
+ );
|
|
|
}
|
|
|
if (index + 1 >= this.curQue.option[opIndex].detail.wordsList.length) {
|
|
|
this.$message.warning("当前已经是最后一个");
|