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