选择设备修复下拉
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="LiveBroadcast" @touchend="onTouchend" @touchmove="onTouchmove">
|
||||
<div class="LiveBroadcast" @touchend="onTouchend" @touchmove.stop="onTouchmove">
|
||||
<div class="top" @click="toChoose" hover-class="bg-hover">
|
||||
<div class="left">
|
||||
<h2 v-if="!equipmentList.length">请选择设备</h2>
|
||||
@@ -73,11 +73,10 @@
|
||||
import Recorder from 'recorder-core'
|
||||
import 'recorder-core/src/engine/mp3'
|
||||
import 'recorder-core/src/engine/mp3-engine'
|
||||
|
||||
export default {
|
||||
name: 'LiveBroadcast',
|
||||
|
||||
appName: '实时喊话',
|
||||
|
||||
data() {
|
||||
return {
|
||||
x: 0,
|
||||
@@ -122,13 +121,10 @@
|
||||
this.y = close.offsetTop
|
||||
this.w = close.clientWidth
|
||||
this.h = close.clientHeight
|
||||
|
||||
document.body.addEventListener('touchmove', this.bindEvent, { passive: false })
|
||||
})
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
document.body.removeEventListener('touchmove', this.bindEvent)
|
||||
this.recorder.close()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user