const { data, error } = useSWR('/api/user', fetch) ... useSWR 返回2 個值:data 和error, 分別對應請求返回的數據結果和錯誤,當data 爲空時, ...
確定! 回上一頁