1、错误提示:
```
object access vis string literals is disallowed
```
// 问题代码
config.headers.common['Authorization'] = localStorage.getItem('TOKEN_KEY')
// 修改
let KEY = 'Authorization'
config.headers.common[KEY ] = localStorage.getItem('TOKEN_KEY') // 通过编译
网友评论