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

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

View File

@ -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`);
}

View File

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