summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
});