修改上传图片接口,登录页加记住密码

This commit is contained in:
zhouyanli
2026-05-28 10:31:38 +08:00
parent 53c4a37854
commit c8c6b7f922
5 changed files with 74 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import request,{get,post} from "./request.js"
import request,{get,post,upload} from "./request.js"
// =======账号密码登录========
@@ -65,8 +65,8 @@ export const addRepairList = (data) =>{
return post('/manage/repair/order',data)
}
// 上传图片
export const uploadFile = (filePath) => {
return upload(filePath,'/resource/oss/upload');
export const uploadFile = (filePath, fileName) => {
return upload(filePath, '/api/butler/file/uploadImage', fileName);
}
// 查询一键开门