mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-29 12:37:20 +00:00
fix YQL bugs:the chat '&' doesn't encoded
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user