diff --git a/src/utils/request.js b/src/utils/request.js index 6a35807..d1ad8c8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -50,7 +50,7 @@ const fetch = (options) => { }) }) } else if (fetchType === 'YQL') { - url = `http://query.yahooapis.com/v1/public/yql?q=select * from json where url='${options.url}?${qs.stringify(options.data)}'&format=json` + url = `http://query.yahooapis.com/v1/public/yql?q=select * from json where url='${options.url}?${encodeURIComponent(qs.stringify(options.data))}'&format=json` data = null }