From eb1b5e1c0e1508371f4855debecb8e2bed888ff1 Mon Sep 17 00:00:00 2001 From: Indomi Date: Fri, 26 Jul 2019 15:13:12 +0800 Subject: [PATCH] solve the error of using unescape --- src/tools/querystring/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/querystring/index.js b/src/tools/querystring/index.js index e8ed0c140..c5c8ca2c2 100644 --- a/src/tools/querystring/index.js +++ b/src/tools/querystring/index.js @@ -39,7 +39,7 @@ export const stringify = function (obj, sep, eq, arrayKey) { var buf = [], key, val; - var escape = escape; + var escape = escape || this.escape; for (key in obj) { if (!hasOwnProperty.call(obj, key)) continue; @@ -95,7 +95,7 @@ export const parse = function (str, sep, eq) { var pairs = str.split(sep || '&'); eq = eq || '='; - var unescape = unescape; + var unescape = unescape || this.unescape; for (var i = 0; i < pairs.length; i++) {