代码优化
This commit is contained in:
parent
e0e22054fb
commit
ad70cae3ee
|
|
@ -6,5 +6,7 @@ NODE_ENV = production
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
VUE_APP_ENV = 'production'
|
VUE_APP_ENV = 'production'
|
||||||
|
|
||||||
|
VUE_APP_BAIDU_MAP_AK = 'cClgLBaLgGUdQDilX9dGvieL'
|
||||||
|
|
||||||
# 若依管理系统/生产环境
|
# 若依管理系统/生产环境
|
||||||
VUE_APP_BASE_API = '/dev-api'
|
VUE_APP_BASE_API = '/dev-api'
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@
|
||||||
<title>
|
<title>
|
||||||
<%= webpackConfig.name %>
|
<%= webpackConfig.name %>
|
||||||
</title>
|
</title>
|
||||||
<!-- <script async src="`https://api.map.baidu.com/api?v=2.0&ak=<%= webpackConfig.AK %>`"></script> -->
|
|
||||||
<!-- <script src="https://api.map.baidu.com/api?type=webgl&v=2.0&ak=<%= webpackConfig.AK %>"></script> -->
|
|
||||||
<script type="text/javascript" src="//api.map.baidu.com/library/TrackAnimation/src/TrackAnimation_min.js"></script>
|
<script type="text/javascript" src="//api.map.baidu.com/library/TrackAnimation/src/TrackAnimation_min.js"></script>
|
||||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ const CompressionPlugin = require('compression-webpack-plugin')
|
||||||
|
|
||||||
const name = process.env.VUE_APP_TITLE || '施工装备管理系统' // 网页标题
|
const name = process.env.VUE_APP_TITLE || '施工装备管理系统' // 网页标题
|
||||||
|
|
||||||
const Ak = process.env.VUE_APP_BAIDU_MAP_AK
|
|
||||||
|
|
||||||
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
||||||
|
|
||||||
// vue.config.js 配置说明
|
// vue.config.js 配置说明
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue