Skip to content

Commit

Permalink
fix: 修改返回页面路径问题 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
luch1994 authored and sudoooooo committed Feb 6, 2024
1 parent e6f1be2 commit cd1f416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/src/modules/survey/controllers/surveyUI.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export class SurveyUIController {

@Get('/')
home(@Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
res.sendFile(join(process.cwd(), 'public', 'management.html'));
}

@Get('/management/:surveyId')
management(@Param('surveyId') surveyId: string, @Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
res.sendFile(join(process.cwd(), 'public', 'management.html'));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export class SurveyResponseUIController {

@Get('/render/:surveyPath')
render(@Param('surveyPath') surveyPath: string, @Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'render.html'));
res.sendFile(join(process.cwd(), 'public', 'render.html'));
}
}

0 comments on commit cd1f416

Please sign in to comment.