Commit c63d06a8 authored by YIyiyi's avatar YIyiyi

perf: 优化

parent 1ce8181d
......@@ -69,7 +69,7 @@ export default {
serverUrl: "http://112.19.80.237:11078/",
},
// devicenum: "18-93-7F-C0-AD-B5",
devicenum: "B8-13-32-86-9F-04",
devicenum: "B8-2D-28-22-54-6C",
};
local.setLocal("devicenum", obj.devicenum);
local.setLocal("deviceInfo", obj.deviceInfo);
......@@ -87,7 +87,7 @@ export default {
window.addEventListener("offline", () => {
this.isShowError = true;
});
this.getDevInfo();
// this.getDevInfo();
},
methods: {
...mapMutations([
......@@ -178,7 +178,7 @@ export default {
getDevInfo() {
this.timer = setInterval(() => {
this.getDeviceInfo();
}, 1000 * 60);
}, 1000 * 5);
},
},
};
......
......@@ -388,3 +388,7 @@
border-radius: 3px;
background: #fff;
}
/* .v-modal {
display: none;
} */
\ No newline at end of file
<template>
<div>
<el-drawer size="1200px" :visible.sync="drawer" direction="rtl">
<el-drawer
size="1200px"
:visible.sync="drawer"
direction="rtl"
:modal-append-to-body="false"
>
<div slot="title" class="title flex">
<span
>材料列表(共{{
......
......@@ -27,7 +27,7 @@ export default {
position: fixed;
top: 0px;
left: 0px;
z-index: 999;
z-index: 9998;
display: flex;
align-items: center;
justify-content: center;
......@@ -47,4 +47,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -5,7 +5,7 @@ import axios from "axios";
import { Message } from "element-ui";
// import local from "@/utils/local";
// 请求超时时间
// axios.defaults.timeout = 15 * 1000;
axios.defaults.timeout = 40 * 1000;
// 设置统一服务器地址
// axios.defaults.baseURL = local.getLocal("serverUrl");
......
......@@ -9448,14 +9448,11 @@ uuid@^8.3.2:
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
<<<<<<< HEAD
=======
v-scale-screen@1.0.2:
version "1.0.2"
resolved "https://registry.npmmirror.com/v-scale-screen/-/v-scale-screen-1.0.2.tgz#8c911e3dd5ff93f56ff719511e5cafd58f0678a6"
integrity sha512-qMXPglHIs8KnhzDBdEBLcIoF3q7jgFCTWNIVPD5M0FGBkD+amYjbFUoLdKol/Xylm+pli4AHOZOqwyL6xX62SA==
>>>>>>> 3c197365888be2d5d4d557ece6830e3655c56d5d
v8-compile-cache@^2.0.3:
version "2.3.0"
resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment