Ver a proveniência

add nested routes

pull/342/head
Guillaume Vincent há 8 anos
ascendente
cometimento
d33fc7483b
2 ficheiros alterados com 9 adições e 0 eliminações
  1. +7
    -0
      src/components/PasswordResetConfirm.vue
  2. +2
    -0
      src/routes.js

+ 7
- 0
src/components/PasswordResetConfirm.vue Ver ficheiro

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


+ 2
- 0
src/routes.js Ver ficheiro

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

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

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

const router = new VueRouter({


Carregando…
Cancelar
Guardar