// 采取async await 方式调用
    async getdetails() {
      
      // 异常需要通过try catch捕获
      try {
        const getData = {
          projectId: this.projectId,
        };
        let location = await getProjectId(getData);
        if (location.data) {
          let name =location.data.name;
          let result = await postProjectDetails(data);
          if (result.data) {
          }
        }
      } catch (err) {
        console.log(err);
      }
    },

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-10-09
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-12-19
  • 2022-01-14
相关资源
相似解决方案