problem description
@ delon/auth
{provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true},
enter the routing page, you will be authenticated by token. If you jump to the login page without token, the requirement now is a separate page that does not require user login. You can enter
the environmental background of the problems and what methods you have tried
the configuration information overridden method provided in the delon document has no effect after use
related codes
/ / Please paste the code text below (do not replace the code with pictures)
export function delonAuthConfig (): DelonAuthConfig {
return Object.assign (new DelonAuthConfig (), < DelonAuthConfig > {
login_url: "/passport/login",
token_send_place: "header",
// token_send_template: "Bearer ${token}",
token_send_key: "Authorization",
/**
* TOKENURL:[ /\/login/, /assets\//, /passport\// ]
*/
ignores: [/\/test/],
/**
* KEYKEYTOKEN
*/
allow_anonymous_key: "_allow_anonymous",
});
}
what result do you expect? What is the error message actually seen?
Don"t log in, go to the routing page