Fix #1483
This commit is contained in:
parent
53f8428d4d
commit
51ed3a6fad
|
@ -2,6 +2,8 @@
|
||||||
* Authorize Form
|
* Authorize Form
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import VueRouter from 'vue-router';
|
||||||
|
|
||||||
// Style
|
// Style
|
||||||
import './style.styl';
|
import './style.styl';
|
||||||
|
|
||||||
|
@ -12,14 +14,17 @@ import Index from './views/index.vue';
|
||||||
/**
|
/**
|
||||||
* init
|
* init
|
||||||
*/
|
*/
|
||||||
init(async (launch) => {
|
init(launch => {
|
||||||
document.title = 'Misskey | アプリの連携';
|
document.title = 'Misskey | アプリの連携';
|
||||||
|
|
||||||
// Launch the app
|
// Init router
|
||||||
const [app] = launch();
|
const router = new VueRouter({
|
||||||
|
mode: 'history',
|
||||||
|
routes: [
|
||||||
|
{ path: '/:token', component: Index },
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
// Routing
|
// Launch the app
|
||||||
app.$router.addRoutes([
|
launch(router);
|
||||||
{ path: '/:token', component: Index },
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue