我想在axios的标题中设置access_token,如下所示。
https://github.com/axios/axios#global-axios-defaults
现在我使用razor语法获取access_token,该语法仅在CSHTML文件中可用。
我正在使用带有JavascriptServices
的vue.js的typescript如何在我的打字稿文件中设置(传递)此等待Context.GetTokenAsync(&#34; access_token&#34;)(比如说boot.ts)以设置为axios默认值。< / p>