refactor(系统设置): 修改查询模版的接口调用

This commit is contained in:
shiziyuan9527 2023-01-28 15:01:43 +08:00 committed by lyh
parent 794053d211
commit 1dd3b2676c
2 changed files with 4 additions and 4 deletions

View File

@ -47,13 +47,13 @@ export function getAllServiceIntegration() {
} }
export function getFieldTemplateCaseOption(projectId) { 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) { 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) { 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`);
} }

View File

@ -100,7 +100,7 @@ export default {
userResourceUrl: { userResourceUrl: {
type: String, type: String,
default() { default() {
return '/user/list/'; return '/user/list';
} }
} }
}, },