feat:请求方法全部换成新的request类,并且引入useEcharts hook

This commit is contained in:
Xwen
2023-12-12 18:10:17 +08:00
31 changed files with 2893 additions and 382 deletions

View File

@@ -1,9 +1,10 @@
import myaxios from '@/utils/request'
export function upload(data){
return myaxios({
url: '/file',
method: 'post',
data:data,
headers: { 'Content-Type': 'multipart/form-data' }
})
};
import request from "@/config/axios/service";
export function upload(data) {
return request({
url: "/file",
method: "post",
data: data,
headers: { "Content-Type": "multipart/form-data" },
});
}