refactor(系统设置): 修改查询模版的接口调用
This commit is contained in:
parent
794053d211
commit
1dd3b2676c
|
@ -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`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ export default {
|
||||||
userResourceUrl: {
|
userResourceUrl: {
|
||||||
type: String,
|
type: String,
|
||||||
default() {
|
default() {
|
||||||
return '/user/list/';
|
return '/user/list';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue