浏览代码

修改配置文件

ljm\李 1 年之前
父节点
当前提交
eb1d088117
共有 8 个文件被更改,包括 13 次插入10 次删除
  1. 4 1
      .env.production
  2. 二进制
      src/assets/images/portion.png
  3. 二进制
      src/assets/images/sum.png
  4. 1 1
      src/layout/components/Navbar.vue
  5. 1 1
      src/router/index.js
  6. 1 1
      src/utils/request.js
  7. 4 4
      src/views/system/dept/index.vue
  8. 2 2
      vue.config.js

+ 4 - 1
.env.production

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

二进制
src/assets/images/portion.png


二进制
src/assets/images/sum.png


+ 1 - 1
src/layout/components/Navbar.vue

@@ -201,7 +201,7 @@ export default {
       })
         .then(() => {
           this.$store.dispatch("LogOut").then(() => {
-            location.href = "/index";
+            location.href = "/admin/index";
           });
         })
         .catch(() => {});

+ 1 - 1
src/router/index.js

@@ -171,7 +171,7 @@ Router.prototype.push = function push(location) {
 }
 
 export default new Router({
-  base: "/",
+  base: "/admin",
   mode: 'history', // 去掉url中的#
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes

+ 1 - 1
src/utils/request.js

@@ -162,7 +162,7 @@ service.interceptors.response.use(res => {
       ).then(() => {
         isRelogin.show = false;
         store.dispatch('LogOut').then(() => {
-          location.href = '/index';
+          location.href = '/admin/index';
         })
       }).catch(() => {
         isRelogin.show = false;

+ 4 - 4
src/views/system/dept/index.vue

@@ -203,7 +203,7 @@
             <el-form-item label="机构代码" prop="email">
               <el-input
                 v-model="form.email"
-                placeholder="请输入邮箱"
+                placeholder="机构代码"
                 maxlength="50"
               />
             </el-form-item>
@@ -362,9 +362,9 @@ export default {
         ],
         email: [
           {
-            type: "email",
-            message: "请输入正确的邮箱地址",
-            trigger: ["blur", "change"],
+           //type: "email",
+           // message: "请输入正确的邮箱地址",
+           // trigger: ["blur", "change"],
           },
         ],
         phone: [

+ 2 - 2
vue.config.js

@@ -18,7 +18,7 @@ module.exports = {
   // 部署生产环境和开发环境下的URL。
   // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
   // 如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
-  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
+  publicPath: process.env.NODE_ENV === "production" ? "/admin/" : "/admin/",
   // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
   outputDir: 'admin',
   // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
@@ -35,7 +35,7 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:9527`,
+        target: `http://bsq.bbwb.gxzf.gov.cn/server`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''