李林
2023-08-22 c4345710b23e8a00b3869e4926ce72786690e0a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 import request from '@/utils/request'
 
export function get(path, params) {
    return request({
        url: path,
        method: 'get',
        params
    })
}
 
export function post(path, data) {
    return request({
        url: path,
        method: 'post',
        data
    })
}
 
export function wpost(path, params) {
    return request({
        url: path,
        method: 'post',
        params
    })
}
 
export function postFile(path, data) {
    return request({
        url: path,
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
          },
        data
    })
}