diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java b/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java index d27bf76a8a..6365b63fb6 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/parse/MsDefinitionParser.java @@ -12,6 +12,7 @@ import io.metersphere.base.domain.ApiDefinitionWithBLOBs; import io.metersphere.base.domain.ApiModule; import io.metersphere.base.domain.ApiTestCaseWithBLOBs; import io.metersphere.commons.constants.ApiImportPlatform; +import io.metersphere.commons.utils.SessionUtils; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; @@ -124,6 +125,9 @@ public class MsDefinitionParser extends MsAbstractParser { JSONObject requestObj = JSONObject.parseObject(request); requestObj.put("id", id); apiDefinition.setRequest(JSONObject.toJSONString(requestObj)); + apiDefinition.setCreateUser(SessionUtils.getUserId()); + apiDefinition.setUserId(SessionUtils.getUserId()); + apiDefinition.setDeleteUserId(null); parseCase(caseMap, apiDefinition, importRequest, originId); } diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index a53169e321..c0df4b7eca 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -118,6 +118,7 @@ +