登录模块
This commit is contained in:
		@ -2,13 +2,9 @@ import { NgModule } from '@angular/core';
 | 
			
		||||
import { RouterModule, Routes } from '@angular/router';
 | 
			
		||||
 | 
			
		||||
import { LayoutPassportComponent } from '../../layout/passport/passport.component';
 | 
			
		||||
import { CallbackComponent } from './callback.component';
 | 
			
		||||
import { UserLockComponent } from './lock/lock.component';
 | 
			
		||||
import { UserLoginComponent } from './login/login.component';
 | 
			
		||||
import { UserLogin2Component } from './login2/login2.component';
 | 
			
		||||
import { UserLogin3Component } from './login3/login3.component';
 | 
			
		||||
import { UserRegisterResultComponent } from './register-result/register-result.component';
 | 
			
		||||
import { UserRegisterComponent } from './register/register.component';
 | 
			
		||||
import { UserLoginComponent } from './components/login/login.component';
 | 
			
		||||
import { OrderAgreementComponent } from './components/order-agreement/order-agreement.component';
 | 
			
		||||
import { UserRetrievePasswordComponent } from './components/retrieve-password/retrieve-password.component';
 | 
			
		||||
 | 
			
		||||
const routes: Routes = [
 | 
			
		||||
  // passport
 | 
			
		||||
@ -17,31 +13,22 @@ const routes: Routes = [
 | 
			
		||||
    component: LayoutPassportComponent,
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: 'login',
 | 
			
		||||
        component: UserLoginComponent,
 | 
			
		||||
        data: { title: '登录' }
 | 
			
		||||
        path: 'agreement',
 | 
			
		||||
        component: OrderAgreementComponent,
 | 
			
		||||
        data: { title: '协议' }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: 'register',
 | 
			
		||||
        component: UserRegisterComponent,
 | 
			
		||||
        data: { title: '注册' }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: 'register-result',
 | 
			
		||||
        component: UserRegisterResultComponent,
 | 
			
		||||
        data: { title: '注册结果' }
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: 'lock',
 | 
			
		||||
        component: UserLockComponent,
 | 
			
		||||
        data: { title: '锁屏' }
 | 
			
		||||
        path: 'retrieve-password',
 | 
			
		||||
        component: UserRetrievePasswordComponent,
 | 
			
		||||
        data: { title: '忘记密码' }
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  // 单页不包裹Layout
 | 
			
		||||
  { path: 'login2', component: UserLogin2Component },
 | 
			
		||||
  { path: 'login3', component: UserLogin3Component },
 | 
			
		||||
  { path: 'passport/callback/:type', component: CallbackComponent }
 | 
			
		||||
  {
 | 
			
		||||
    path: 'passport/login',
 | 
			
		||||
    component: UserLoginComponent,
 | 
			
		||||
    data: { title: '登录' }
 | 
			
		||||
  }
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user