现象是点击登录一直报错401,接口也不调用。我也不知道啥原因啊,
在shared/delon.module.ts 中改写
export function fnDelonAuthConfig(): DelonAuthConfig {
return Object.assign(new DelonAuthConfig(), <DelonAuthConfig>{
login_url: '/passport/login',
token_send_place: 'url',
ignores: [ /\/login/,/\/accountLogin/, /\/htmlLogin/, /assets\// ], // 多了这一行!
});
}