录音权限判断调整,闪退问题处理
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
// 将对象和字符串相互转换
|
||||
|
||||
Reference in New Issue
Block a user