解决跨域

This commit is contained in:
taozi
2021-12-09 16:00:36 +08:00
parent f49e88555b
commit 730f09176e

View File

@ -77,9 +77,9 @@ console.log(options)
...options.headers,
// hahah: 'Bearer2 ',
}
if(options.method=='post'){
options.headers.hahah='Bearer2 '
}
// if(options.method=='post'){
// options.headers.hahah='Bearer2 '
// }
if (options.login === true) {
options.headers = {