|
@@ -317,6 +317,7 @@
|
|
|
curQue.Bookanswer.practiceModel[index].recordList
|
|
|
"
|
|
|
:tmIndex="index"
|
|
|
+ :sentIndex="sentIndex"
|
|
|
@handleWav="handleWav"
|
|
|
v-if="refresh"
|
|
|
/>
|
|
@@ -421,8 +422,21 @@ export default {
|
|
|
watch: {
|
|
|
sentIndex: {
|
|
|
handler: function (newVal, oldVal) {
|
|
|
+ let _this = this;
|
|
|
if (newVal != oldVal) {
|
|
|
- this.wavblob = "";
|
|
|
+ let Bookanswer = _this.curQue.Bookanswer;
|
|
|
+ if (
|
|
|
+ Bookanswer &&
|
|
|
+ Bookanswer.practiceModel &&
|
|
|
+ Bookanswer.practiceModel[newVal] &&
|
|
|
+ Bookanswer.practiceModel[newVal].recordList &&
|
|
|
+ Bookanswer.practiceModel[newVal].recordList.length > 0
|
|
|
+ ) {
|
|
|
+ _this.wavblob =
|
|
|
+ Bookanswer.practiceModel[newVal].recordList[0].wavData;
|
|
|
+ } else {
|
|
|
+ _this.wavblob = "";
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|