diff --git a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue index a890c80033..5435d76a4d 100644 --- a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue +++ b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue @@ -281,7 +281,6 @@ import { TYPE_TO_C } from '@/business/automation/scenario/Setting'; import ApiCaseHeader from './ApiCaseHeader'; import { deepClone } from 'metersphere-frontend/src/utils/tableUtils'; import { useApiStore } from '@/store'; -import {TokenKey} from "metersphere-frontend/src/utils/constants"; const store = useApiStore(); export default { @@ -701,8 +700,7 @@ export default { row.createTime = data.createTime; row.updateTime = data.updateTime; this.compare = []; - let user = JSON.parse(localStorage.getItem(TokenKey)); - row.updateUser = user.name; + row.updateUser = getCurrentUser().name; row.type = null; this.$success(this.$t('commons.save_success')); this.tagCount = 0;