mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-31 14:50:26 +08:00
fix: 修复swagger url导入不支持中文的问题 (#2059)
This commit is contained in:
parent
8abfe2e7df
commit
79f3dc7138
@ -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)))
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user