From 0b1a8feb9ea928ae5d32c7bae01c2054f9ff70b8 Mon Sep 17 00:00:00 2001 From: Conrawl Rogers Date: Tue, 5 Nov 2024 02:56:12 -0400 Subject: [PATCH] fix: request options merge via defu --- src/runtime/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index abfe720..9994ae7 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -102,7 +102,7 @@ export default defineNuxtPlugin(() => { } if (reqOpts?.token) { delete reqOpts.token } - return defu(req, reqOpts) + return defu(reqOpts, req) }, ...v?.fetchOptions })