From a84a76df8d63c4b7ba072545538cdeeb1fdb6f75 Mon Sep 17 00:00:00 2001 From: zhouyuan63 Date: Mon, 22 Jan 2024 10:56:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/exam/apiHook.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/exam/apiHook.md b/docs/guide/exam/apiHook.md index 698ed58..43151ad 100644 --- a/docs/guide/exam/apiHook.md +++ b/docs/guide/exam/apiHook.md @@ -30,8 +30,8 @@ await sleep(30000) await page.to('http://t.268xue.com/'); // 获取第三方接口数据 -const apiData = await axios.get('http://YinTao.jd.com/ping') -console.log('apiData',apiData.data) // 获取data数据 +const res = await axios.get('http://YinTao.jd.com/ping') +console.log('res',res.data) // 获取data数据 await sleep(2000) ``` \ No newline at end of file