diff --git a/ui/src/views/function-lib/index.vue b/ui/src/views/function-lib/index.vue index 3188ad00f..8ba9e7fb6 100644 --- a/ui/src/views/function-lib/index.vue +++ b/ui/src/views/function-lib/index.vue @@ -264,6 +264,11 @@ function getList() { function refresh(data: any) { if (data) { const index = functionLibList.value.findIndex((v) => v.id === data.id) + if (user.userInfo && data.user_id === user.userInfo.id) { + data.username = user.userInfo.username + } else { + data.username = userOptions.value.find((v) => v.value === data.user_id)?.label + } functionLibList.value.splice(index, 1, data) } else { paginationConfig.total = 0