bug修复,如果社会编码为空会有异常。

pull/11/head
liujun 2024-03-15 17:20:19 +08:00
parent e737ccaa65
commit 643253af79
1 changed files with 4 additions and 0 deletions

View File

@ -252,6 +252,10 @@ export default {
}) })
} }
var hasSocialCode = (rule, value, callback) => { var hasSocialCode = (rule, value, callback) => {
if (value === null || value === '') {
callback(new Error('统一社会信用代码为空'))
return
}
requestFN( requestFN(
'/relevantunits/hasSocialCode', '/relevantunits/hasSocialCode',
{ {