diff --git a/frontend/src/api/modules/project-management/menuManagement.ts b/frontend/src/api/modules/project-management/menuManagement.ts index fbef36aab5..455e637461 100644 --- a/frontend/src/api/modules/project-management/menuManagement.ts +++ b/frontend/src/api/modules/project-management/menuManagement.ts @@ -45,32 +45,32 @@ export async function getAuditorOptions(projectId: string, type: MenuEnum) { return MSR.get({ url: `/project/application/${suffix}/user/${projectId}` }); } -export function postUpdateMenu(data: MenuTableListParams) { - let suffix = ''; - switch (data.type) { +export function postUpdateMenu(data: MenuTableListParams, suffix: string) { + let suffixUrl = ''; + switch (suffix) { case MenuEnum.workstation: - suffix = 'workstation'; + suffixUrl = 'workstation'; break; case MenuEnum.testPlan: - suffix = 'test-plan'; + suffixUrl = 'test-plan'; break; case MenuEnum.bugManagement: - suffix = 'bug'; + suffixUrl = 'bug'; break; case MenuEnum.caseManagement: - suffix = 'case'; + suffixUrl = 'case'; break; case MenuEnum.apiTest: - suffix = 'api'; + suffixUrl = 'api'; break; case MenuEnum.uiTest: - suffix = 'uiTest'; + suffixUrl = 'ui'; break; default: - suffix = 'performance-test'; + suffixUrl = 'performance-test'; break; } - return MSR.post({ url: `${Url.updateConfigByMenuTypeUrl}${suffix}`, data }); + return MSR.post({ url: `${Url.updateConfigByMenuTypeUrl}${suffixUrl}`, data }); } export function getConfigByMenuItem(data: MenuTableListParams) { diff --git a/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue b/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue index 5dc097f233..07d296ac7c 100644 --- a/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue +++ b/frontend/src/components/pure/ms-time-selector/MsTimeSelector.vue @@ -8,6 +8,7 @@ hide-button size="small" @blur="handleBlur" + @press-enter="handleBlur" >