Commit 3301e2514a597c134d2f12b7fee774bd5eef8f70

Authored by 谭毅彬
1 parent 1d62baab

VUE生产配置启动告警修正

Signed-off-by: TanYibin <5491541@qq.com>
ant-design-vue-jeecg/.env.production
1 1 NODE_ENV=production
2 2 VUE_APP_ENV=production
3 3 outputDir=dist
4   -VUE_APP_API_BASE_URL=http://localhost:8080/wms
  4 +VUE_APP_API_BASE_URL=http://172.16.29.77:8081/wms
5 5 VUE_APP_CAS_BASE_URL=http://localhost:8443/cas
6 6 VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
7 7 \ No newline at end of file
... ...
ant-design-vue-jeecg/.gitignore
... ... @@ -5,8 +5,7 @@ node
5 5 /test
6 6  
7 7 # local env files
8   -.env.local
9   -.env.*.local
  8 +.env.*
10 9  
11 10 # Log files
12 11 npm-debug.log*
... ...
ant-design-vue-jeecg/src/views/jeecg/tablist/JeecgOrderCustomerList.vue
... ... @@ -67,12 +67,12 @@
67 67  
68 68 <script>
69 69 import JeecgOrderCustomerModal from './form/JeecgOrderCustomerModal'
70   -import JeecgOrderDMainList from './JeecgOrderDMainList'
  70 +// import JeecgOrderDMainList from './JeecgOrderDMainList'
71 71 import {JeecgListMixin} from '@/mixins/JeecgListMixin'
72 72 import {getAction} from '@/api/manage'
73 73  
74 74 export default {
75   - name: "JeecgOrderCustomerList",
  75 + // name: "JeecgOrderCustomerList",
76 76 mixins: [JeecgListMixin],
77 77 components: {
78 78 JeecgOrderDMainList,
... ...
ant-design-vue-jeecg/vue.config.js
... ... @@ -25,6 +25,21 @@ module.exports = {
25 25 publicPath: '/wms/',
26 26 outputDir: process.env.outputDir,
27 27 configureWebpack: config => {
  28 + // 不是开发环境时生效
  29 + if (process.env.NODE_ENV !== 'development') {
  30 + config['performance'] = {
  31 + // 警告 webpack 的性能提示
  32 + hints: 'warning',
  33 + // 入口起点的最大体积
  34 + maxEntrypointSize: 50000000,
  35 + // 生成文件的最大体积
  36 + maxAssetSize: 30000000,
  37 + // 只给出 js 文件的性能提示
  38 + assetFilter: function (assetFilename) {
  39 + return assetFilename.endsWith('.js')
  40 + }
  41 + }
  42 + }
28 43 // 生产环境取消 console.log
29 44 if (process.env.NODE_ENV === 'production') {
30 45 config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
... ...
huaheng-wms-core/src/main/resources/application-prod.yml
... ... @@ -151,7 +151,7 @@ spring:
151 151 # username: root
152 152 # password: root
153 153 # driver-class-name: com.mysql.cj.jdbc.Driver
154   - # # 达梦数据库链接驱动
  154 + # 达梦数据库链接驱动
155 155 # url: jdbc:dm://192.168.225.128:5236?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
156 156 # username: WMS4
157 157 # password: 123456
... ... @@ -292,10 +292,11 @@ cas:
292 292 #日志输出级别配置(DEBUG < INFO < WARN < ERROR < FATAL)
293 293 logging:
294 294 level:
295   - org.jeecg.common: WARN
296   - org.jeecg.modules: WARN
  295 + org.jeecg.common: ERROR
  296 + org.jeecg.modules: ERROR
297 297 org.jeecg.modules.wms: INFO
298 298 org.jeecg.config.shiro: ERROR
  299 + org.jeecg.utils: ERROR
299 300 #swagger
300 301 knife4j:
301 302 #开启增强配置
... ...
huaheng-wms-core/src/main/resources/application-test.yml
... ... @@ -233,7 +233,7 @@ jeecg:
233 233 # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
234 234 baidu: ??
235 235 # 在线预览文件服务器地址配置
236   - file-view-domain: 127.0.0.1:8012
  236 + file-view-domain: http://fileview.jeecg.com
237 237 # minio文件上传
238 238 minio:
239 239 minio_url: http://minio.jeecg.com
... ... @@ -294,6 +294,7 @@ cas:
294 294 logging:
295 295 level:
296 296 org.jeecg.common: ERROR
  297 + org.jeecg.modules: ERROR
297 298 org.jeecg.modules.wms: INFO
298 299 org.jeecg.config.shiro: ERROR
299 300 org.jeecg.utils: INFO
... ...