如何解决最大内存超出错误

Posted

技术标签:

【中文标题】如何解决最大内存超出错误【英文标题】:How to Resolve the Error of maximum memory exceeds 【发布时间】:2021-12-19 23:10:26 【问题描述】:

我的 Vue 打字稿代码中出现内存超出错误

public async created() 
  if (this.item) 
    await this.loadAppointments();
  


private async loadAppointments(_items?: Appointments) 
  const _item: AppointmentsDetails = await LicenseSubscriptionAPI.getInstance().getAppointments();
  // console.log(_item.app)
  this.item =_item.app;

【问题讨论】:

【参考方案1】:

从我们调用 LoadAppointments() 函数的 Created Hook 中删除更新并删除异步等待调用

public created() 
this.loadAppointments();

【讨论】:

以上是关于如何解决最大内存超出错误的主要内容,如果未能解决你的问题,请参考以下文章