From f46e7ee7274114ec2055c2d265707d60a5af29ae Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Wed, 17 Apr 2019 21:05:47 +0900 Subject: [PATCH] refs #850 Replace router with typescript --- src/renderer/main.ts | 2 +- src/renderer/router/{index.js => index.ts} | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename src/renderer/router/{index.js => index.ts} (98%) diff --git a/src/renderer/main.ts b/src/renderer/main.ts index 7d12f086..b82d303d 100644 --- a/src/renderer/main.ts +++ b/src/renderer/main.ts @@ -12,7 +12,7 @@ import VueI18Next from '@panter/vue-i18next' import './assets/fonts/fonts.css' import App from './App.vue' -import router from './router' +import router from '@/router' import store from './store' import i18next from '~/src/config/i18n' diff --git a/src/renderer/router/index.js b/src/renderer/router/index.ts similarity index 98% rename from src/renderer/router/index.js rename to src/renderer/router/index.ts index acb452ee..66206601 100644 --- a/src/renderer/router/index.js +++ b/src/renderer/router/index.ts @@ -3,7 +3,7 @@ import Router from 'vue-router' Vue.use(Router) -export default new Router({ +const router = new Router({ routes: [ { path: '/login', @@ -156,3 +156,5 @@ export default new Router({ } ] }) + +export default router