From 788186e4dbdc5bc0d78e5006f605e02a468060b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Fri, 20 Sep 2024 14:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 ++- .env.production | 8 ++++++-- public/index.html | 5 +++-- src/components/grids.vue | 6 +++--- src/views/car.vue | 3 ++- src/views/carInfo.vue | 3 ++- vue.config.js | 9 ++++++++- 7 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.env.development b/.env.development index fa254a7..642f552 100644 --- a/.env.development +++ b/.env.development @@ -6,9 +6,10 @@ ENV = 'development' # 云坤地图/开发环境 # VUE_APP_BASE_API = 'http://192.168.0.91/gps-web/api' -# VUE_APP_BASE_API = 'http://39.101.188.84:9066' +# VUE_APP_BASE_API = 'http://39.101.188.84:9066' "https://www.jichuanglanhai.com:88/3dtiles/yunkun/tileset.json" VUE_APP_BASE_API = '' VUE_APP_BASE_API2 = '/map' +VUE_APP_BASE_API3='/3dtiles' VUE_APP_BASE_API_YUNKUN = 'http://192.168.0.91/gps-web/api' # 路由懒加载 diff --git a/.env.production b/.env.production index 78489f3..630deb3 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,11 @@ VUE_APP_TITLE = 云坤地图 # 生产环境配置 ENV = 'production' -# 云坤地图/生产环境 -VUE_APP_BASE_API = 'http://192.168.0.77:9066' +# 自己写的接口 +VUE_APP_BASE_API = 'http://192.168.0.77/api' +# 离线底图 VUE_APP_BASE_API2 = 'http://192.168.0.77/map' +# 3D白膜 +VUE_APP_BASE_API3='http://192.168.0.77/3dtiles' +# 押运公司接口 VUE_APP_BASE_API_YUNKUN = 'http://192.168.0.91/gps-web/api' diff --git a/public/index.html b/public/index.html index a7e3b62..0bb5a3a 100644 --- a/public/index.html +++ b/public/index.html @@ -20,12 +20,13 @@ + - <% if (process.env.NODE_ENV === 'production' ) { %> +