mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-25 17:08:21 +01:00
fix: encode URI component when get file from VFS API
This commit is contained in:
parent
6523fafe91
commit
eac84a3ab8
@ -231,7 +231,7 @@ namespace OS {
|
||||
*/
|
||||
export function readfile(p: string, t: string): Promise<any> {
|
||||
const path = `${API.REST}/VFS/get/`;
|
||||
return API.get(path + p, t);
|
||||
return API.get(path + encodeURIComponent(p), t);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user