// 统一请求路径前缀在libs/axios.js中修改 import { getProxyRequest } from '@/libs/axios'; // proxy export const proxy = 'http://admin.hiver.cc:18090'; export const hello = () => { return getProxyRequest(`${proxy}/Iot/Hello`) } export const getIotRange = (ip, port, i) => { i = i - 1; return getProxyRequest(`${proxy}/Iot/GetIotRange?ip=${ip}&port={$port}&i=${i}`) } export const setIotRange = (ip, port, i, code) => { i = i - 1; return getProxyRequest(`${proxy}/Iot/SetIotRange?ip=${ip}&port=${port}&i=${i}&code=${code}`) } export const getIotValue = (ip, port, code) => { return getProxyRequest(`${proxy}/Iot/GetIotValue?ip=${ip}&port=${port}&code=${code}`) }