6 lines
377 B
Plaintext
6 lines
377 B
Plaintext
// 登录后只恢复本人报告的编号和栏目,不接受任意回跳URL。
|
|||
|
|
export function reportRoute(assessmentId: string, tab: string = 'overview'): string {
|
||
|
|
if (!/^[1-9][0-9]{0,9}$/.test(assessmentId) || !['overview', 'matches', 'improvements'].includes(tab)) return ''
|
||
|
|
return '/packages/finance/report/report?assessmentId=' + assessmentId + '&tab=' + tab
|
||
|
|
}
|