summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-16 06:31:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-16 06:31:56 +0900
commit51ed3a6fadac232dfa306884b02a6f2bed2d4e09 (patch)
treec4eb792b1f89be4ffdb36b3d72470a9e78f88773
parentFix bug (diff)
downloadsharkey-51ed3a6fadac232dfa306884b02a6f2bed2d4e09.tar.gz
sharkey-51ed3a6fadac232dfa306884b02a6f2bed2d4e09.tar.bz2
sharkey-51ed3a6fadac232dfa306884b02a6f2bed2d4e09.zip
Fix #1483
-rw-r--r--src/client/app/auth/script.ts19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/client/app/auth/script.ts b/src/client/app/auth/script.ts
index 31c758ebc2..20f59bf033 100644
--- a/src/client/app/auth/script.ts
+++ b/src/client/app/auth/script.ts
@@ -2,6 +2,8 @@
* Authorize Form
*/
+import VueRouter from 'vue-router';
+
// Style
import './style.styl';
@@ -12,14 +14,17 @@ import Index from './views/index.vue';
/**
* init
*/
-init(async (launch) => {
+init(launch => {
document.title = 'Misskey | アプリの連携';
- // Launch the app
- const [app] = launch();
+ // Init router
+ const router = new VueRouter({
+ mode: 'history',
+ routes: [
+ { path: '/:token', component: Index },
+ ]
+ });
- // Routing
- app.$router.addRoutes([
- { path: '/:token', component: Index },
- ]);
+ // Launch the app
+ launch(router);
});