Commit 269e5e7f authored by caicaicai's avatar caicaicai

修改

parent de3a3e9d
......@@ -49,7 +49,7 @@
<span class="voiceAppContent_left_title">当前语音通话情况:</span>
</div>
<audio controls currentTime autoplay :src='srcUrl' style="display:none;"></audio>
<audio autoplay :src='srcUrl' style="display:none;"></audio>
<div class="situationStyle">
<div v-for="(item,index) in videoContentAllArray" :key="index" class='situation_fa1'>
......@@ -174,7 +174,17 @@ export default {
}
},
created(){},
mounted() {},
mounted() {
let that = this;
document.onkeydown = function(e) {
if(e.keyCode == 178){
that.recStart();
};
if(e.keyCode == 179){
that.recStop();
};
};
},
methods: {
loadData(value) {
this.showDecide = true;
......@@ -624,7 +634,7 @@ export default {
},
//播放语音
selectSituation(item){
this.recClose();
//this.recClose();
// Blobdata 就是后端返回给你的Blob数据
const reader = new FileReader();
const booo = new Blob([item.contentText]);
......@@ -632,7 +642,7 @@ export default {
reader.onload = (e) => {
const bufer = e.srcElement.result;
const blob = this.addWavHeader(bufer, 16000, 16, 1);
this.srcUrl = window.URL.createObjectURL(blob);
this.srcUrl = (window.URL||webkitURL).createObjectURL(blob);
};
},
......
......@@ -159,6 +159,7 @@ export default {
}
});
}, 20000)
},
methods:{
loadData(){
......
......@@ -10,8 +10,8 @@ module.exports = {
productionSourceMap:false, //去掉打包的时候生成的map文件
lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
devServer: {
//host: '192.168.0.101', // 也可以直接写IP地址这样方便真机测试
host: 'localhost',
host: '192.168.0.101', // 也可以直接写IP地址这样方便真机测试
//host: 'localhost',
port: 3002, // 端口号
https: false, // https:{type:Boolean}
open: true, // 配置自动启动浏览器
......@@ -43,7 +43,7 @@ module.exports = {
},
},
//https: true,
https: true,
},
configureWebpack: {
plugins: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment