소스 검색

修改环境

车车 1 년 전
부모
커밋
4194cf806d
7개의 변경된 파일13개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 1
      .env.development
  2. 1 1
      .env.production
  3. 1 1
      .env.staging
  4. 1 2
      package.json
  5. 1 1
      src/views/print/printtemplate/panel.js
  6. 1 1
      src/views/register.vue
  7. 7 7
      vue.config.js

+ 1 - 1
.env.development

@@ -4,7 +4,7 @@ VUE_APP_TITLE = 国软科技
 # 开发环境配置
 ENV = 'development'
 
-# 若依管理系统/开发环境
+# 国软管理系统/开发环境
 VUE_APP_BASE_API = '/dev-api'
 
 # 路由懒加载

+ 1 - 1
.env.production

@@ -4,5 +4,5 @@ VUE_APP_TITLE = 国软科技
 # 生产环境配置
 ENV = 'production'
 
-# 若依管理系统/生产环境
+# 国软管理系统/生产环境
 VUE_APP_BASE_API = '/prod-api'

+ 1 - 1
.env.staging

@@ -6,5 +6,5 @@ NODE_ENV = production
 # 测试环境配置
 ENV = 'staging'
 
-# 若依管理系统/测试环境
+# 国软管理系统/测试环境
 VUE_APP_BASE_API = '/stage-api'

+ 1 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "ktg-mes-ui",
   "version": "3.8.2",
-  "description": "苦糖果MES",
+  "description": "国软MES",
   "author": "YinJinLu",
   "license": "MIT",
   "scripts": {
@@ -51,7 +51,6 @@
     "js-beautify": "1.13.0",
     "js-cookie": "3.0.1",
     "jsencrypt": "3.0.0-rc.1",
-    "konva": "^9.3.15",
     "nprogress": "0.2.0",
     "quill": "1.3.7",
     "screenfull": "5.0.2",

+ 1 - 1
src/views/print/printtemplate/panel.js

@@ -17,7 +17,7 @@ export default {
         "top": 10.5,
         "height": 27,
         "width": 259,
-        "title": "苦糖果标签打印测试",
+        "title": "国软标签打印测试",
         "fontSize": 19,
         "fontWeight": "600",
         "textAlign": "center",

+ 1 - 1
src/views/register.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="register">
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
-      <h3 class="title">苦糖果MES</h3>
+      <h3 class="title">国软MES</h3>
       <el-form-item prop="username">
         <el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
           <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />

+ 7 - 7
vue.config.js

@@ -7,7 +7,7 @@ function resolve(dir) {
 
 const CompressionPlugin = require('compression-webpack-plugin')
 
-const name = process.env.VUE_APP_TITLE || '苦糖果MES-软件开发记录' // 网页标题
+const name = process.env.VUE_APP_TITLE || '国软MES-软件开发记录' // 网页标题
 
 const port = process.env.port || process.env.npm_config_port || 9091 // 端口
 
@@ -35,15 +35,15 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://36.133.174.236:9090`,
+        target: `http://localhost:9090`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''
         }
       },
       '/ureport': {
-        target: 'http://36.133.174.236:9090',
-        ws: false,
+        target: 'http://localhost:9090',
+        ws:false,
         changeOrigin: true,
         pathRewrite: {
           '^/ureport': '/ureport'
@@ -104,7 +104,7 @@ module.exports = {
             .plugin('ScriptExtHtmlWebpackPlugin')
             .after('html')
             .use('script-ext-html-webpack-plugin', [{
-              // `runtime` must same as runtimeChunk name. default is `runtime`
+            // `runtime` must same as runtimeChunk name. default is `runtime`
               inline: /runtime\..*\.js$/
             }])
             .end()
@@ -134,8 +134,8 @@ module.exports = {
             })
           config.optimization.runtimeChunk('single'),
           {
-            from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
-            to: './' //到根目录下
+             from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
+             to: './' //到根目录下
           }
         }
       )