【发布时间】:2023-02-15 20:27:42
【问题描述】:
我想做 laravel angular jwt 身份验证,所以我想应用 guard 但它给我错误:Invalid configuration of route '': redirectTo and canActivate cannot be used together. Redirects happen before activation so canActivate will never be executed。
应用程序路由.module.ts
const routes: Routes = [
{ path:"", redirectTo:"/adress", pathMatch:'full', canActivate:[AuthGuard] },
];
【问题讨论】:
标签: angular guard canactivate