natasha пре 3 година
родитељ
комит
59529008d0

+ 4 - 1
src/components/Adult/preview/SelectTone.vue

@@ -102,7 +102,7 @@ export default {
       _this.curTime = time;
       _this.stopAudio = true
       _this.$refs.audioLine.onTimeupdateTime(time / 1000, true);
-      _this.ed = edTime / 1000
+      _this.ed = edTime
     },
     getCurTime(curTime) {
       this.curTime = curTime * 1000;
@@ -113,6 +113,9 @@ export default {
           clearInterval(this.timer);
       }
     },
+    emptyEd(){
+        this.ed = null;
+    }
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {

+ 2 - 3
src/components/Adult/preview/SelectYinjie.vue

@@ -50,9 +50,8 @@ export default {
       if (this.userList[index].indexOf(indexs) > -1) {
         this.userList[index].splice(this.userList[index].indexOf(indexs), 1);
       } else {
-        // this.userList[index] = []
-        this.userList[index].push(indexs);
-        console.log(this.userList[index])
+        // this.userList[index].push(indexs);
+        this.$set(this.userList, index, [indexs]);
       }
     },
     handleClear(index) {