fix: service

This commit is contained in:
Fine 2023-12-04 16:41:00 +08:00
parent 8816f8147f
commit ef743c6e87

View File

@ -199,6 +199,9 @@ limitations under the License. -->
ElMessage.error(resp.errors); ElMessage.error(resp.errors);
return; return;
} }
if (!logStore.services.length) {
return;
}
if (props.data.filters && props.data.filters.id) { if (props.data.filters && props.data.filters.id) {
state.service = logStore.services.find((item: { id: string }) => item.id === props.data.filters?.id); state.service = logStore.services.find((item: { id: string }) => item.id === props.data.filters?.id);
} else { } else {