Browse Source

修改配置文件和部门手机号码验证

ljm\李 1 year ago
parent
commit
bdad7596b1
3 changed files with 4 additions and 10 deletions
  1. 2 2
      .env.production
  2. 1 7
      src/views/system/dept/index.vue
  3. 1 1
      vue.config.js

+ 2 - 2
.env.production

@@ -7,8 +7,8 @@ ENV = 'production'
 # 综合保税区管理系统/生产环境
 # VUE_APP_BASE_API = 'http://bsq-server.aseanbusiness.cn'
 # VUE_APP_BASE_API ='http://106.55.241.82:9001'
- VUE_APP_BASE_API = 'http://localhost:9527'
-#VUE_APP_BASE_API = 'http://bsq.bbwb.gxzf.gov.cn/server'
+# VUE_APP_BASE_API = 'http://localhost:9527'
+VUE_APP_BASE_API = 'https://bsq.bbwb.gxzf.gov.cn/server'
 # 请求、响应数据加密
 VUE_APP_AES_ENCRYPT_ENABLED = 'false'
 # 请求数据加密秘钥串

+ 1 - 7
src/views/system/dept/index.vue

@@ -367,13 +367,7 @@ export default {
            // trigger: ["blur", "change"],
           },
         ],
-        phone: [
-          {
-            pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
-            message: "请输入正确的手机号码",
-            trigger: "blur",
-          },
-        ],
+
       },
     };
   },

+ 1 - 1
vue.config.js

@@ -64,7 +64,7 @@ module.exports = {
       // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
       new CompressionPlugin({
         cache: false, // 不启用文件缓存
-        test: /\.(js|css|html)?$/i, // 压缩文件格式
+        test: /\.(css|html)?$/i, // 压缩文件格式
         filename: '[path].gz[query]', // 压缩后的文件名
         algorithm: 'gzip', // 使用gzip压缩
         minRatio: 0.8 // 压缩率小于1才会压缩