rk
2025-09-29 218e84d2264e413f31a2f3957f05bb7b8ad42d5d
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 axios from "axios"
 
const instance = axios.create({
  baseURL: '/gateway_interface',
  timeout: 30000,
  withCredentials: true,
  headers: {
    shopId: 1
  }
})
instance.interceptors.response.use(
  (response) => {
    const res = response.data
    return res
  }
)
 
 
export default instance
 
export const request = (url, data, method = 'GET') => {
  return instance({
    url: url,
    method: method || 'GET',
    params: method == 'GET' ? { ...data } : null,
    data: method == 'POST' ? { ...data } : null
  })
}
 
export const getLargeScreenData = (data) => {
  return instance({
    url: 'visitsAdmin/cloudService/web/driverPlatform/getLargeScreenData',
    method: 'get',
    data
  })
}