Sfoglia il codice sorgente

代码生成器前端

gaoxiong 2 anni fa
parent
commit
c782e0cb60
4 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 1 1
      .env.production
  2. 1 2
      .env.staging
  3. 3 3
      package.json
  4. 2 1
      src/store/modules/permission.js

+ 1 - 1
.env.production

@@ -5,4 +5,4 @@ VUE_APP_TITLE = 移动安全保卫管理平台项目
 ENV = 'production'
 
 # 生产环境
-VUE_APP_BASE_API = 'http://10.87.10.55:8081'
+VUE_APP_BASE_API = '/'

+ 1 - 2
.env.staging

@@ -7,5 +7,4 @@ NODE_ENV = production
 ENV = 'staging'
 
 # 测试环境
-# VUE_APP_BASE_API = 'http://10.87.10.55:8080/'
-VUE_APP_BASE_API = 'http://127.0.0.1:8080/
+VUE_APP_BASE_API = '/'

+ 3 - 3
package.json

@@ -1,8 +1,8 @@
 {
-  "name": "ruoyi",
+  "name": "soc",
   "version": "3.6.2",
-  "description": "若依管理系统",
-  "author": "若依",
+  "description": "移动安全保卫管理系统",
+  "author": "xunmei",
   "private": true,
   "license": "MIT",
   "scripts": {

+ 2 - 1
src/store/modules/permission.js

@@ -146,7 +146,8 @@ export const loadView = (view) => {
     return (resolve) => require([`@/views/${view}`], resolve)
   } else {
     // 使用 import 实现生产环境的路由懒加载
-    return () => import(`@/views/${view}`)
+    //return () => import(`@/views/${view}`)
+    return (resolve) => require([`@/views/${view}`], resolve);
   }
 }