线缆开启关闭
@@ -60,10 +61,10 @@ import {
updateMarkEnableStatus,
updateAlarmChannel,
} from "@/utils/api/index";
-
+import termsAdd from "./components/termsAdd";
export default {
name: "globalTools",
- components: {},
+ components: { termsAdd },
data() {
return {
lineValue: false,
@@ -172,6 +173,7 @@ export default {
padding: 12px;
border-radius: 4px;
display: flex;
+
.globalDrawLine {
width: 200px;
height: max-content;
diff --git a/vue.config.js b/vue.config.js
index 71925e6..39debfb 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -17,14 +17,14 @@ module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
devServer: {
- port: 8080, // 端口号的配置
+ port: 9527, // 端口号的配置
proxy: {
"/api": {
//表示拦截以/api开头的请求路径
- //target: "http://localhost:8080", // 使用本地端口,这个端口是 PuTTY SSH 隧道映射的本地端口
- //target: "http://192.168.1.190:8080", //liu 本机ip 需要去掉/Api
+
+ //target: "http://192.168.1.190:8080", //190 需要去掉/Api
//target: "http://192.168.50.7:8093", //liu 本机ip 需要去掉/Api
- target: "http://61.169.135.146:40080/", //东视
+ target: "http://61.169.135.146:40080/", //dell
changOrigin: true, //是否开启跨域
pathRewrite: {
"^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的