object access via string literals is disallowed
// 错误提示
object access via string literals is disallowed
// 问题代码
config.headers.common['Authorization'] = localStorage.getItem('TOKEN_KEY')
// 问题代码修改
let KEY = 'Authorization'
config.headers.common[KEY] = localStorage.getItem('TOKEN_KEY') // 编译通过