From 1dd3b2676cc1bd810baec6a371afca4ff00fe7fc Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Sat, 28 Jan 2023 15:01:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system-setting/frontend/src/api/project.js | 6 +++--- system-setting/frontend/src/business/common/AddMember.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system-setting/frontend/src/api/project.js b/system-setting/frontend/src/api/project.js index 37aa0e7ba4..18f972646a 100644 --- a/system-setting/frontend/src/api/project.js +++ b/system-setting/frontend/src/api/project.js @@ -47,13 +47,13 @@ export function getAllServiceIntegration() { } export function getFieldTemplateCaseOption(projectId) { - return get(`/project/field/template/case/option/${projectId}`); + return get(projectId ? `/project/field/template/case/option/${projectId}` : `/project/field/template/case/option`); } export function getFieldTemplateIssueOption(projectId) { - return get(`/project/field/template/issue/option/${projectId}`); + return get(projectId ? `/project/field/template/issue/option/${projectId}` : `/project/field/template/issue/option`); } export function getFieldTemplateApiOption(projectId) { - return get(`/project/field/template/api/option/${projectId}`); + return get(projectId ? `/project/field/template/api/option/${projectId}` : `/project/field/template/api/option`); } diff --git a/system-setting/frontend/src/business/common/AddMember.vue b/system-setting/frontend/src/business/common/AddMember.vue index 0cd06a914b..a9aec5dc2b 100644 --- a/system-setting/frontend/src/business/common/AddMember.vue +++ b/system-setting/frontend/src/business/common/AddMember.vue @@ -100,7 +100,7 @@ export default { userResourceUrl: { type: String, default() { - return '/user/list/'; + return '/user/list'; } } },