fix: 修复swagger url导入不支持中文的问题 (#2059)

This commit is contained in:
monkeyWie 2021-08-24 15:47:12 +08:00 committed by GitHub
parent 8abfe2e7df
commit 79f3dc7138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,6 +332,6 @@ export async function checkProjectName(name, group_id) {
export async function handleSwaggerUrlData(url) {
return {
type: GET_SWAGGER_URL_DATA,
payload: axios.get('/api/project/swagger_url?url='+url)
payload: axios.get('/api/project/swagger_url?url='+encodeURI(encodeURI(url)))
};
}