レスキュー画面を追加
This commit is contained in:
parent
ae5655bb00
commit
34395eedd8
2 changed files with 17 additions and 0 deletions
|
@ -156,6 +156,10 @@ router.get('/announcements/:id', async (ctx) => {
|
||||||
} : null);
|
} : null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/__rescue__', async(ctx) => {
|
||||||
|
await ctx.render('rescue');
|
||||||
|
});
|
||||||
|
|
||||||
router.get('(.*)', async (ctx) => {
|
router.get('(.*)', async (ctx) => {
|
||||||
await ctx.render('frontend');
|
await ctx.render('frontend');
|
||||||
});
|
});
|
||||||
|
|
13
src/backend/views/rescue.pug
Normal file
13
src/backend/views/rescue.pug
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
doctype html
|
||||||
|
html
|
||||||
|
head
|
||||||
|
meta(charset="UTF-8")
|
||||||
|
body
|
||||||
|
p 問題を修正するため、端末に残ったデータを削除しました。
|
||||||
|
p 5秒後にトップページに移動します。
|
||||||
|
hr
|
||||||
|
p To solve the problem, deleted data remaining on the device.
|
||||||
|
p After 5 seconds, you will be redirected to the top page.
|
||||||
|
script.
|
||||||
|
localStorage.clear();
|
||||||
|
setTimeout(() => location.href = '/', 5000);
|
Loading…
Add table
Add a link
Reference in a new issue