我正试着做如下的事情。。。
const bootstrap = async ()=>{
const response = await axios.get("https://.../environment");
const config = response.data;
window.audience = config.audience;
const app = createApp(App);
app.mount("#app");
}
bootstrap().then(()=>{
console.log("Bootstrap Completed")
});
但当我尝试这个时,我会出错。。
TS2339: Property 'audience' does not exist on type 'Window & typeof globalThis'.
我应该如何在这里设置窗口变量?