Closed magickeyyy closed 2 years ago
async login(data: { username: string; password: string }) { const info = await request('console-service/login', { method: 'POST', data, getResponse: true, parseResponse: false, }).catch(() => {}); info?.headers.forEach((value: string, key: string) => { console.log(key, value); }); console.log('', info?.headers.has('token')); return new AdminUser(); }
就是拿不到token这个header配置
服务端改配置Access-Control-Expose-Headers
就是拿不到token这个header配置