1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-15 21:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

文件关联书籍功能完成

This commit is contained in:
2022-04-23 10:16:05 +08:00
parent 4bf2d6ed9a
commit 7c452b851d
8 changed files with 293 additions and 1 deletions

View File

@@ -89,6 +89,12 @@ router.get('/callback/:platform', function (req, res) {
});
});
router.get('/dashboard/iframe/:page', function (req, res) {
res.render(`dashboard/component/iframe/${req.params.page}`, {
pageUrl: (req._parsedUrl.pathname + "/").replace("//", "/"),
});
});
router.get('/dashboard/:group/:page/:subpage?', function (req, res) {
// baseTemplate 基于哪个html模板渲染页面
// pageTemplate 引入这个文件中的页面脚本