Browse Source

add nested routes

pull/342/head
Guillaume Vincent 8 years ago
parent
commit
d33fc7483b
2 changed files with 9 additions and 0 deletions
  1. +7
    -0
      src/components/PasswordResetConfirm.vue
  2. +2
    -0
      src/routes.js

+ 7
- 0
src/components/PasswordResetConfirm.vue View File

@@ -0,0 +1,7 @@
<template>
<div>
{{ $route.params.uid }}
{{ $route.params.token }}
</div>
</template>


+ 2
- 0
src/routes.js View File

@@ -2,6 +2,7 @@ import Vue from 'vue';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';


import PasswordGenerator from './components/PasswordGenerator'; import PasswordGenerator from './components/PasswordGenerator';
import PasswordResetConfirm from './components/PasswordResetConfirm';
import Login from './components/Login'; import Login from './components/Login';
import Register from './components/Register'; import Register from './components/Register';
import ForgotPassword from './components/ForgotPassword'; import ForgotPassword from './components/ForgotPassword';
@@ -11,6 +12,7 @@ Vue.use(VueRouter);


const routes = [ const routes = [
{path: '/', component: PasswordGenerator}, {path: '/', component: PasswordGenerator},
{path: '/password/reset/confirm/:uid/:token', name:'passwordResetConfirm', component: PasswordResetConfirm},
]; ];


const router = new VueRouter({ const router = new VueRouter({


Loading…
Cancel
Save