Fix bug
This commit is contained in:
parent
8fe6da0cad
commit
ed9e7520f1
2 changed files with 14 additions and 8 deletions
|
|
@ -42,17 +42,21 @@ router.get('/assets/*', async ctx => {
|
|||
|
||||
// Apple touch icon
|
||||
router.get('/apple-touch-icon.png', async ctx => {
|
||||
await send(ctx, `${client}/assets/apple-touch-icon.png`);
|
||||
await send(ctx, '/assets/apple-touch-icon.png', {
|
||||
root: client
|
||||
});
|
||||
});
|
||||
|
||||
// ServiceWroker
|
||||
router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
||||
await send(ctx, `${client}/assets/sw.${ctx.params[0]}.js`);
|
||||
});
|
||||
//router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
||||
// await send(ctx, `${client}/assets/sw.${ctx.params[0]}.js`);
|
||||
//});
|
||||
|
||||
// Manifest
|
||||
router.get('/manifest.json', async ctx => {
|
||||
await send(ctx, `${client}/assets/manifest.json`);
|
||||
await send(ctx, '/assets/manifest.json', {
|
||||
root: client
|
||||
});
|
||||
});
|
||||
|
||||
//#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue