From 2ab38350a8730efffdd2419b1684f164d8bbe6d9 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 30 Oct 2023 17:04:07 +0800 Subject: [PATCH] 2.0 --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 632edde..4e2b386 100644 --- a/index.js +++ b/index.js @@ -226,8 +226,7 @@ export default class Request { get query() { if (!this.#query) { let para = parse(this.#req.url).query - this.#query = {} - para = Object.assign(this.#query, QS.parse(para)) + this.#query = QS.parse(para) } return this.#query }