录音权限判断调整,闪退问题处理

This commit is contained in:
yanghang
2025-07-15 17:53:48 +08:00
parent adfdd99ab5
commit 292613aa08
9 changed files with 68 additions and 20 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
const _ENV = import.meta.env
function msg(title, duration = 1000) {
uni.showToast({
title: title,
@@ -114,7 +116,7 @@ export const getUserInfo = (key = '') => {
const userInfo = uni.getStorageSync('userInfo')
return '' === key ? userInfo : userInfo[key];
}
export const getPhoneEnvBool = (flag) => _ENV.VITE_APP_ENV === flag
// 将对象和字符串相互转换