method: 'GET',
headers: {
'Content-Type': 'application/json',
//'Authorization': localStorage.getItem('Authorization'),
},
}).then((response) => {
if (response.status == 200) {
auth = true;
}
});
localStorage.getItem('Authorization')type 是 string|null 和headers要求的参数类型不匹配