Browse Source

+ 管理端前端打包配置

chen.cheng 11 months ago
parent
commit
95d451b1b4
3 changed files with 3 additions and 2 deletions
  1. 1 1
      ruoyi-ui/.env.test
  2. 1 0
      ruoyi-ui/package.json
  3. 1 1
      ruoyi-ui/vue.config.js

+ 1 - 1
ruoyi-ui/.env.test

@@ -7,4 +7,4 @@ ENV = 'production'
 # 若依管理系统/生产环境
 VUE_APP_BASE_API = '/prod-api'
 
-VUE_APP_BASE_URL = 'http://172.192.13.80:8080/tfc'
+VUE_APP_BASE_URL = 'http://172.192.13.80:8080'

+ 1 - 0
ruoyi-ui/package.json

@@ -6,6 +6,7 @@
   "license": "MIT",
   "scripts": {
     "dev": "vue-cli-service serve",
+    "test": "vue-cli-service serve --mode test",
     "build:prod": "vue-cli-service build",
     "build:stage": "vue-cli-service build --mode staging",
     "build:test": "vue-cli-service build --mode test",

+ 1 - 1
ruoyi-ui/vue.config.js

@@ -38,7 +38,7 @@ module.exports = {
         target: process.env.VUE_APP_BASE_URL,
         changeOrigin: true,
         pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
+          ['^' + process.env.VUE_APP_BASE_API]: '/tfc'
         }
       }
     },