diff --git a/Android/simpleDemo/build.gradle b/Android/simpleDemo/build.gradle index a3e4e9c0..59efb01a 100644 --- a/Android/simpleDemo/build.gradle +++ b/Android/simpleDemo/build.gradle @@ -8,8 +8,8 @@ android { applicationId "cn.com.jlbank.ai" minSdkVersion 29 targetSdkVersion 33 - versionName System.getenv("versionName") ?: "1.0.3" - versionCode System.getenv("versionCode")?.toInteger() ?: 285 + versionName System.getenv("versionName") ?: "1.0.4" + versionCode System.getenv("versionCode")?.toInteger() ?: 286 multiDexEnabled true compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/src/components/touch-btn/touch-btn.vue b/src/components/touch-btn/touch-btn.vue index d70d3731..15b1bfea 100644 --- a/src/components/touch-btn/touch-btn.vue +++ b/src/components/touch-btn/touch-btn.vue @@ -628,8 +628,11 @@ console.log('录音时长定时器已清除'); } }; - clearRecordingTimer(); - if (!status) return; + + if (!status) { + clearRecordingTimer(); + return; + } const maxDuration = props.maxRecordDuration; durationTimer = setTimeout(() => { console.log(`录音达到最大时长 ${maxDuration} 秒,自动关闭`);