浏览代码

add nested routes

pull/342/head
Guillaume Vincent 8 年前
父节点
当前提交
d33fc7483b
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. +7
    -0
      src/components/PasswordResetConfirm.vue
  2. +2
    -0
      src/routes.js

+ 7
- 0
src/components/PasswordResetConfirm.vue 查看文件

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


+ 2
- 0
src/routes.js 查看文件

@@ -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({


正在加载...
取消
保存