From 8f981d50d065742cfaa4792842e8d4542bd1c25e Mon Sep 17 00:00:00 2001
From: zhanghao <774378400@qq.com>
Date: Thu, 10 Sep 2026 15:25:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=AD=E6=96=87?=
=?UTF-8?q?=E5=92=8C=E8=8B=B1=E6=96=87=E8=AF=AD=E6=96=99=E8=BE=93=E5=85=A5?=
=?UTF-8?q?=E9=A1=B9=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=85=A8=E5=B1=80=E5=B8=B8?=
=?UTF-8?q?=E9=87=8F=E4=BB=A5=E6=B3=A8=E5=85=A5=E9=A1=B9=E7=9B=AE=E5=90=8D?=
=?UTF-8?q?=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 +++-
src/views/inspection/point/index.vue | 31 +++++++++++++++++++++-------
vite.config.js | 6 +++++-
3 files changed, 32 insertions(+), 9 deletions(-)
diff --git a/.env.development b/.env.development
index 7d398ec..50bcf45 100644
--- a/.env.development
+++ b/.env.development
@@ -12,4 +12,6 @@ VITE_WS_URL = ws://192.168.0.222:14080/ws
VITE_AUDIO_SERVER_URL = ws://192.168.0.222:14080/ws/audio
VITE_PORT = 5174
VITE_INSPECTION_TYPE = "inspection"
-VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/"
\ No newline at end of file
+VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/"
+
+PROJECT_NAME=changan
\ No newline at end of file
diff --git a/src/views/inspection/point/index.vue b/src/views/inspection/point/index.vue
index 6d1fb13..449dc91 100644
--- a/src/views/inspection/point/index.vue
+++ b/src/views/inspection/point/index.vue
@@ -215,6 +215,24 @@
/>
+ 播放语料
+
+
+
+
+
+
+
{
additionalData: `@use "${variablePath}" as *;`
}
}
- }
+ },
+ define: {
+ // 将环境变量注入到全局常量中
+ '__PROJECT_NAME__': JSON.stringify(env.PROJECT_NAME || 'changan'),
+ },
}
})