jiangchengfeiyi-xiaochengxu/common/globalFunction.js

18 lines
350 B
JavaScript
Raw Normal View History

2025-03-09 10:55:38 +00:00
export const dealResult = (res) => {
let response = res.data
if (response.code !== 1) {
uni.showModal({
title: '提示',
content: response.message,
showCancel: false
})
return false
}
return response.data
2025-03-11 14:04:30 +00:00
}
export const JudgeIsNullity = (val) => {
if (val === null || val === undefined || val === '') return true
return false
2025-03-09 10:55:38 +00:00
}