diff --git a/src/App.vue b/src/App.vue index 600d717..ca05b0d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,25 +1,8 @@ diff --git a/src/main.js b/src/main.js index 5a6a208..af4b013 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,9 @@ -import './assets/main.sass' +import './assets/main.sass'; -import { createApp } from 'vue' -import App from './App.vue' +import { createApp } from 'vue'; +import App from './App.vue'; +import router from './router'; -createApp(App).mount('#app') +const app = createApp(App); +app.use(router); +app.mount('#app'); diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..b29970c --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,14 @@ +import {createRouter, createMemoryHistory} from 'vue-router'; + +import MainView from '../views/MainView.vue'; +import AddAccountView from '../views/AddAccountView.vue'; + +const router = createRouter({ + history: createMemoryHistory(), + routes: [ + {path: '/', component: MainView}, + {path: '/add-account', component: AddAccountView}, + ] +}); + +export default router; diff --git a/src/views/AddAccountView.vue b/src/views/AddAccountView.vue new file mode 100644 index 0000000..552a783 --- /dev/null +++ b/src/views/AddAccountView.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 7680fe4..71b3c73 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -1,10 +1,26 @@