我正在嘗試從另一個函數的 Axios 調用訪問承諾值。methods: { checkItem() { const url = "http://api.crossref.org/journals/" + this.editedItem.issn; return axios.get(url) .then(response => response.status); }, save() { console.log(this.checkItem()); }}我希望在調用save(). 目前,它正在記錄整個承諾。
訪問承諾值 axios
慕慕森
2021-08-20 18:03:35