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'), + }, } })