diff --git a/templates/vue/api.ts.j2 b/templates/vue/api.ts.j2 index 9df1d2a..b1fd6ec 100644 --- a/templates/vue/api.ts.j2 +++ b/templates/vue/api.ts.j2 @@ -62,7 +62,7 @@ export namespace {{entity}}Api { * 上传图片 */ export function upload(params: any) { - return requestClient.post(applicationConfig.javaURL+'/file/up', params, + return requestClient.post(applicationConfig.javaURL+'/file/upImg', params, { headers: {'Content-Type': 'multipart/form-data', Token: useAccessStore().accessToken, version: '1.0.1'}}); }