Pass one at unfucking the stupid file encoding issues

This commit is contained in:
Dane Everitt
2020-12-08 21:24:17 -08:00
parent 24417ac516
commit 3e65a2d055
10 changed files with 33 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ import http from '@/api/http';
export default (server: string, file: string): Promise<string> => {
return new Promise((resolve, reject) => {
http.get(`/api/client/servers/${server}/files/contents`, {
params: { file: encodeURI(decodeURI(file)) },
params: { file },
transformResponse: res => res,
responseType: 'text',
})