瀏覽代碼

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


Loading…
取消
儲存