35acf679 by lihua

fix: 报错导致未提示

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