覆冰接口

role1.0
fanluyan 1 year ago
parent 17e5e4605c
commit 1127c752e1

@ -0,0 +1,24 @@
import request from "../request";
//获取装置总数图表
//获取数据接口
export function getDataListJoggle(data) {
return request({
url: "/xapi/query.php",
method: "get",
params: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}
//获取相位码
export function funccodeJoggle(data) {
return request({
url: "/xapi/funccode.php",
method: "get",
params: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}

@ -199,7 +199,7 @@
</template>
<script>
import leftTree from "../components/leftTree.vue";
import { getDataListJoggle, funccodeJoggle } from "@/utils/api/index";
import { getDataListJoggle, funccodeJoggle } from "@/utils/api/iceApi";
export default {
name: "icing",
components: {

@ -251,7 +251,7 @@
</template>
<script>
import leftTree from "../components/leftTree";
import { getDataListJoggle } from "@/utils/api/index";
import { getDataListJoggle } from "@/utils/api/iceApi";
export default {
name: "weather",
components: {

@ -22,12 +22,12 @@ module.exports = defineConfig({
"/api": {
//表示拦截以/api开头的请求路径
//target: "http://47.96.238.157:8093", //阿里云服务器环境
// target: "http://180.166.218.222:40080", //dell
target: "http://192.168.1.190:8080", //liu 本机ip 需要去掉/Api
target: "http://180.166.218.222:40080", //dell
//target: "http://192.168.1.190:8080", //liu 本机ip 需要去掉/Api
// target: "http://192.168.50.42:81", //东视
changOrigin: true, //是否开启跨域
pathRewrite: {
"^/api": "", //重写api把api变成空字符因为我们真正请求的路径是没有api的
"^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的
},
},
},

Loading…
Cancel
Save