Browse Source

修改配置项

zhongxiaoyu 3 years ago
parent
commit
152e314800
6 changed files with 9 additions and 21 deletions
  1. 0 5
      .env.development
  2. 0 6
      .env.production
  3. 0 6
      .env.staging
  4. 5 0
      public/config.js
  5. 2 2
      src/main.js
  6. 2 2
      src/router/routes/routes-file-five.js

+ 0 - 5
.env.development

@@ -4,8 +4,3 @@ ENV = 'development'
 # base api
 VUE_APP_BASE_API = '/dev-api'
 
-# does job show yes/no 显示/不显示职务
-VUE_APP_SHOW_JOB = 'no'
-
-# account group accountGroup命名
-VUE_APP_ACCOUNT_GROUP_TYPE = '用户组'

+ 0 - 6
.env.production

@@ -3,9 +3,3 @@ ENV = 'production'
 
 # base api
 VUE_APP_BASE_API = '/prod-api'
-
-# does job show yes/no 显示/不显示职务
-VUE_APP_SHOW_JOB = 'no'
-
-# account group accountGroup命名
-VUE_APP_ACCOUNT_GROUP_TYPE = '用户组'

+ 0 - 6
.env.staging

@@ -5,9 +5,3 @@ ENV = 'staging'
 
 # base api
 VUE_APP_BASE_API = '/stage-api'
-
-# does job show yes/no 显示/不显示职务
-VUE_APP_SHOW_JOB = 'no'
-
-# account group accountGroup命名
-VUE_APP_ACCOUNT_GROUP_TYPE = '用户组'

+ 5 - 0
public/config.js

@@ -2,3 +2,8 @@ var PLATFROM_CONFIG = {};
 PLATFROM_CONFIG.baseUrl = "https://authgateway.fsjtkj.cn/" // http请求地址
 PLATFROM_CONFIG.appSecret = "40t7vcbi5bc1twyihd2dum82yn1mt1kj" //appSecret
 PLATFROM_CONFIG.appId = "unsk1w37910olf8j" //appid
+// does job show yes/no 显示/不显示职务
+PLATFROM_CONFIG.doesJobShow = false
+
+// account group accountGroup命名
+PLATFROM_CONFIG.accountGroupType = '用户组'

+ 2 - 2
src/main.js

@@ -16,8 +16,8 @@ import '@/checkPermission' //按钮权限 全局自定义指令v-is
 // import lodash
 import _ from 'lodash'
 Vue.prototype._ = _
-Vue.prototype.doesJobShow = process.env.VUE_APP_SHOW_JOB === 'yes'
-Vue.prototype.accountGroupType = process.env.VUE_APP_ACCOUNT_GROUP_TYPE
+Vue.prototype.doesJobShow = PLATFROM_CONFIG.doesJobShow
+Vue.prototype.accountGroupType = PLATFROM_CONFIG.accountGroupType
 
 // import echarts
 import * as echarts from 'echarts'

+ 2 - 2
src/router/routes/routes-file-five.js

@@ -1,14 +1,14 @@
 /*
  * @Author: your name
  * @Date: 2022-01-06 10:05:44
- * @LastEditTime: 2022-03-14 11:21:28
+ * @LastEditTime: 2022-03-14 11:43:37
  * @LastEditors: your name
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: \src\router\routes\routes-file-five.js
  */
 import Layout from '@/layout'
 
-const accountGroupType = process.env.VUE_APP_ACCOUNT_GROUP_TYPE
+const accountGroupType = PLATFROM_CONFIG.accountGroupType
 
 const accountGroupRoutes = {
   path: '/accountGroup',