jiangping
2025-01-03 bb696e54a8c537cd9b5aa7fd5f72f322ec5f7d41
screen/src/utils/request.js
@@ -2,7 +2,7 @@
const instance = axios.create({
  baseURL: '/gateway_interface',
  timeout: 10000,
  timeout: 30000,
  withCredentials: true,
  headers: {
    shopId: 1
@@ -18,6 +18,14 @@
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({