Added Edit.vue, removed Form.vue

This commit is contained in:
Šimon Jan Šustek 2021-01-22 21:51:17 +01:00
parent d43ac3815e
commit 43b658c1fd
3 changed files with 6 additions and 6 deletions

View File

@ -11,12 +11,12 @@ const routes = [
component: Home
},
{
path: '/form',
name: 'Form',
path: '/edit',
name: 'Edit',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/Form.vue')
component: () => import(/* webpackChunkName: "about" */ '../views/Edit.vue')
}
]

View File

@ -1,12 +1,12 @@
<template>
<div class="home">
<div class="form">
This is form
</div>
</template>
<script>
export default {
name: 'Form',
name: 'Edit',
components: {
//HelloWorld
}

View File

@ -1,7 +1,7 @@
<template>
<div class="home">
Welcome fuckers<br>
<router-link to="/form">Here be link to form</router-link>
<router-link to="/edit">Here be link to form</router-link>
</div>
</template>