Commit c5beb99b authored by guang.wu's avatar guang.wu

fix: 修改接口返回null问题

parent 35f8db30
......@@ -48,7 +48,10 @@ export async function getInfo() {
const data = await apiBusinessDetail();
let settlementType = 1;
const res = data.data;
if (res) {
console.log('res :>> ', res);
if (!res) {
return;
}
if (res.facilities) {
res.customList = res.facilities.customList || [];
res.selfList = res.facilities.selfList || [];
......@@ -96,7 +99,6 @@ export async function getInfo() {
if (settlementType !== null) {
settlementType = +res.settlementType;
}
}
// 身份证有效期处理
let checkboxDisabled = false;
if (res.legalPersonPeriod) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment