log
zhoudw
2022-02-14 56d09d42795eb26f7c3fae0ea00131d44a4c6f1a
src/views/iframe/iframe.vue
@@ -12,7 +12,7 @@
</template>
<script>
import { mapActions, mapState } from "vuex";
import VConsole from 'vconsole';
// import VConsole from 'vconsole';
export default {
  data(){
    return{
@@ -36,7 +36,7 @@
    this.iframeWin = this.$refs.iframe.contentWindow;
  },
  created () {
     let vConsole = new VConsole() // 初始化
    //  let vConsole = new VConsole() // 初始化
     let item = JSON.parse(localStorage.getItem("item"));
     this.scenes_id = item.scenes_id;
     this.scenes_name = item.scenes_name;
@@ -152,7 +152,27 @@
                  });
                  wx.error(function(res){
                      _this.sendMsg({
                        action:'start',
                        action:'stop',
                        state:'fail',
                        data:{}
                      });
                  })
                  break;
                  case 'cleanup':
                  wx.stopRecord({
                    success: function (res) {
                      console.log(res,'清除录音成功');
                      _this.sendMsg({
                        action:'cleanup',
                        state:'ok',
                        data:{
                        }
                      });
                    }
                  });
                  wx.error(function(res){
                      _this.sendMsg({
                        action:'cleanup',
                        state:'fail',
                        data:{}
                      });