diff --git a/.env.development b/.env.development
index c197569..5bfd22d 100644
--- a/.env.development
+++ b/.env.development
@@ -7,5 +7,7 @@ ENV = 'development'
# 华双视频水位数据接收平台/开发环境
VUE_APP_BASE_API = '/control-api'
+VUE_APP_PIC_PREFIX = 'https://www.huastech.com.cn'
+
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/.env.production b/.env.production
index 1915e72..9a4418d 100644
--- a/.env.production
+++ b/.env.production
@@ -6,3 +6,6 @@ ENV = 'production'
# 华双视频水位数据接收平台/生产环境
VUE_APP_BASE_API = '/control-api'
+
+# VUE_APP_PIC_PREFIX = 'https://www.huastech.com.cn'
+VUE_APP_PIC_PREFIX = '/control-api'
diff --git a/.env.staging b/.env.staging
index ae36e4a..6520756 100644
--- a/.env.staging
+++ b/.env.staging
@@ -8,3 +8,5 @@ ENV = 'staging'
# 华双视频水位数据接收平台/测试环境
VUE_APP_BASE_API = '/control-api'
+
+VUE_APP_PIC_PREFIX = 'https://www.huastech.com.cn'
diff --git a/src/views/data/photo/index.vue b/src/views/data/photo/index.vue
index e02c450..012833b 100644
--- a/src/views/data/photo/index.vue
+++ b/src/views/data/photo/index.vue
@@ -163,8 +163,8 @@ export default {
e.imgName = errorImg
}
else {
- e.imgName = "https://www.huastech.com.cn" + e.imgName
- // e.imgName = process.env.VUE_APP_BASE_API + e.imgName
+ // e.imgName = "https://www.huastech.com.cn" + e.imgName
+ e.imgName = process.env.VUE_APP_PIC_PREFIX + e.imgName
}
})
this.loading = false;
diff --git a/src/views/data/photo2/index.vue b/src/views/data/photo2/index.vue
index b5bf675..d356313 100644
--- a/src/views/data/photo2/index.vue
+++ b/src/views/data/photo2/index.vue
@@ -135,8 +135,9 @@ export default {
e.imgName = errorImg
}
else {
- e.imgName = "https://www.huastech.com.cn" + e.imgName
- // e.imgName = process.env.VUE_APP_BASE_API + e.imgName
+ console.log( process.env.VUE_APP_PIC_PREFIX + e.imgName)
+ // e.imgName = "https://www.huastech.com.cn" + e.imgName
+ e.imgName = process.env.VUE_APP_PIC_PREFIX + e.imgName
}
})
this.loading = false;
diff --git a/src/views/index.vue b/src/views/index.vue
index 03fcd17..7fcb38f 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -7,7 +7,7 @@
视频水位计数据监控大屏