From fde55ba06b7587d1260dc50790f8a52f4e942cf6 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 19 Sep 2022 19:02:24 +0800 Subject: [PATCH] docs: update example to ensure `query` is not undefined (#115) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0708c0f..61dff1e 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ await $fetch('/api', { console.log('[fetch request]', request, options) // Add `?t=1640125211170` to query search params - options.query = options.query + options.query = options.query || {} options.query.t = new Date() } })