Explorar o código

微信PC端会报错,不要使用

shish %!s(int64=4) %!d(string=hai) anos
pai
achega
955fdc9ced
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      ghsApp/src/utils/util.js

+ 3 - 0
ghsApp/src/utils/util.js

@@ -301,6 +301,8 @@ export const noStockRemind = () =>{
 
 //点击声效 shish
 export const hitRemind = () =>{
+	//微信PC端会报错,不要使用
+	//#ifdef APP-PLUS
 	const innerAudioContext = uni.createInnerAudioContext()
 	innerAudioContext.autoplay = false
 	innerAudioContext.src = "/static/hit.mp3"
@@ -310,6 +312,7 @@ export const hitRemind = () =>{
 		innerAudioContext.destroy()
 	})
 	innerAudioContext.play()
+	//#endif
 }
 
 //去重 姜枫 2021.05.05