From c2a8e29ef993e620086f1f1ff45c2caa203f5e9d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 6 Feb 2020 23:20:59 +0900 Subject: Not found page --- src/client/pages/not-found.vue | 36 ++++++++++++++++++++++++++++++++++++ src/client/router.ts | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/client/pages/not-found.vue (limited to 'src') diff --git a/src/client/pages/not-found.vue b/src/client/pages/not-found.vue new file mode 100644 index 0000000000..05bd347724 --- /dev/null +++ b/src/client/pages/not-found.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/client/router.ts b/src/client/router.ts index 70bc48c49e..c1140355fd 100644 --- a/src/client/router.ts +++ b/src/client/router.ts @@ -53,7 +53,7 @@ export const router = new VueRouter({ { path: '/auth/:token', component: page('auth') }, { path: '/authorize-follow', component: page('follow') }, { path: '/share', component: page('share') }, - /*{ path: '*', component: MkNotFound }*/ + { path: '*', component: page('not-found') } ], // なんかHacky // 通常の使い方をすると scroll メソッドの behavior を設定できないため、自前で window.scroll するようにする -- cgit v1.2.3-freya