Nuxt3 用 useFetch 同一个链接不同请求参数为什么返回的数据是同一个?-灵析社区

嚯嚯嚯嚯嚯嚯

用fetch: export const listApi = async (data) => { const response = await fetch('http://127.0.0.1:8081/api/list', { method: "POST", headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }); const result = await response.json(); return result; };

阅读量:1

点赞量:0

问AI