diff --git a/root/chat/index.vue b/root/chat/index.vue index ec20788..02916eb 100644 --- a/root/chat/index.vue +++ b/root/chat/index.vue @@ -2078,12 +2078,17 @@ }, animate($type = "heavy") { - uni.vibrateShort({ - type: $type, - fail(err){ - console.log('震动失败:',err) - } - }); + const systemInfo = uni.getSystemInfoSync(); + if(systemInfo.platform === 'ios'){ + + }else{ + uni.vibrateShort({ + type: $type, + fail(err) { + console.log("震动失败:", err); + }, + }); + } }, clearMsg() { this.sendMsg = "";