6 lines
330 B
TypeScript
6 lines
330 B
TypeScript
/** 集合接口必须指定完整隔离边界,避免旧调用隐式访问其它迭代。 */
|
|
export function iterationPath(projectId: number, iterationId: number | undefined, suffix: string): string {
|
|
if (!iterationId) throw new Error('请选择迭代')
|
|
return `/projects/${projectId}/iterations/${iterationId}/${suffix}`
|
|
}
|