wangguoyu 3 miesięcy temu
rodzic
commit
3170de0ee4
1 zmienionych plików z 0 dodań i 24 usunięć
  1. 0 24
      pages/newEnglish/components/readContent.vue

+ 0 - 24
pages/newEnglish/components/readContent.vue

@@ -167,28 +167,6 @@
 	async function handlePlay(opt) {
 	async function handlePlay(opt) {
 		emits('play-audio', opt)
 		emits('play-audio', opt)
 	}
 	}
-	// 检查权限
-	const checkPermission = () => {
-		uni.authorize({
-			scope: 'scope.record',
-			success: () => {
-				console.log('已授权录音权限')
-			},
-			fail: (err) => {
-				console.log('未授权录音权限', err)
-				uni.showModal({
-					title: '提示',
-					content: '需要录音权限才能使用此功能',
-					confirmText: '去设置',
-					success: (res) => {
-						if (res.confirm) {
-							uni.openSetting()
-						}
-					}
-				})
-			}
-		})
-	}
 
 
 	// 处理触摸开始(移动端)
 	// 处理触摸开始(移动端)
 	const handleTouchStart = (e) => {
 	const handleTouchStart = (e) => {
@@ -303,8 +281,6 @@
 	onMounted(() => {
 	onMounted(() => {
 		initItem()
 		initItem()
 		initRecorder()
 		initRecorder()
-		checkPermission()
-
 	})
 	})
 
 
 	onUnmounted(() => {
 	onUnmounted(() => {