35acf679 by lihua

fix: 报错导致未提示

1 parent a8785d3f
...@@ -498,13 +498,13 @@ onBeforeMount(() => { ...@@ -498,13 +498,13 @@ onBeforeMount(() => {
498 } 498 }
499 499
500 getParamsList({ dictType: '领域' }).then((res: any) => { 500 getParamsList({ dictType: '领域' }).then((res: any) => {
501 if (res.code == proxy.$passCode) { 501 if (res?.code == proxy.$passCode) {
502 domainDictList.value = res.data || []; 502 domainDictList.value = res.data || [];
503 let itemIndex = baseInfoFormItems.value.findIndex(item => item.field == 'domain'); 503 let itemIndex = baseInfoFormItems.value.findIndex(item => item.field == 'domain');
504 let item = baseInfoFormItems.value[itemIndex]; 504 let item = baseInfoFormItems.value[itemIndex];
505 item && (item.options = domainDictList.value); 505 item && (item.options = domainDictList.value);
506 } else { 506 } else {
507 proxy.$ElMessage.error(res.msg); 507 res?.msg && proxy.$ElMessage.error(res?.msg);
508 } 508 }
509 }); 509 });
510 510
...@@ -534,7 +534,7 @@ onBeforeMount(() => { ...@@ -534,7 +534,7 @@ onBeforeMount(() => {
534 }) 534 })
535 /** 获取可选择的成员下拉列表 */ 535 /** 获取可选择的成员下拉列表 */
536 getContractTenantListExcludeSelf().then((res: any) => { 536 getContractTenantListExcludeSelf().then((res: any) => {
537 if (res.code == proxy.$passCode) { 537 if (res?.code == proxy.$passCode) {
538 memberTenantList.value = res.data || []; 538 memberTenantList.value = res.data || [];
539 memberTableInfo.value.editInfo.memberGuid.options = memberTenantList.value; 539 memberTableInfo.value.editInfo.memberGuid.options = memberTenantList.value;
540 } else { 540 } else {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!