import request from '@/router/axios'; import axios from 'axios' var newAxios = axios.create({ baseURL: "http://192.168.0.105:812", withCredentials: false, // headers: { // "Content-type": "application/x-ww-form-urlencoded" // } }) export const getList = (current, size, params) => { // return request({ return newAxios({ url: '/api/punish/list', method: 'get', params: { ...params, current, size, } }) } export const adddata = (row) => { // return request({ return newAxios({ url: '/api/punish/save', // url: 'http://192.168.0.104:80/punish/save', method: 'post', data: row }) } export const update = (row) => { // return request({ return newAxios({ url: '/api/punish/update', method: 'post', data: row }) } export const remove = (ids) => { // return request({ return newAxios({ url: '/api/punish/remove', method: 'post', params: { ids, } }) }