修改上传图片接口,登录页加记住密码
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// 查询一键开门
|
||||
|
||||
Reference in New Issue
Block a user