Nuxt3中可使用useFetch來獲取數據,不須再引用axios,相當方便: <script setup> import { ref } from 'vue'; const product = ref(); const { data: _product} = await useFetch("https://api_url..."); product.value = _product.value.data;</script> 本筆記參考: https://juejin.cn/post/7104071421160063012 https://juejin.cn/post/7086472647575339045