Quellcode durchsuchen

修改测试环境前缀

yujinwen vor 6 Tagen
Ursprung
Commit
f0f5347f33
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      config/index.js
  2. 2 2
      config/prod.test.env.js

+ 1 - 1
config/index.js

@@ -59,7 +59,7 @@ module.exports = {
     assetsRoot: !isPreProduction ? path.resolve(__dirname, '../eta_front') : path.resolve(__dirname, '../eta_front'),
     assetsSubDirectory: 'static',
 //  assetsPublicPath: '/vue-admin/',
-		assetsPublicPath: './',
+    assetsPublicPath: process.env.VUE_APP_BASE_URL,
     productionSourceMap: false,
     // Gzip off by default as many popular static hosts such as
     // Surge or Netlify already gzip all static assets for you.

+ 2 - 2
config/prod.test.env.js

@@ -1,7 +1,7 @@
 module.exports = {
 	NODE_ENV:'"test"',
-	VUE_APP_API_ROOT:'"/adminapi"',  //测试环境
-	VUE_APP_BASE_URL:'"/"',
+	VUE_APP_API_ROOT:'"/ybeta/adminapi"',  //测试环境
+	VUE_APP_BASE_URL:'"/ybeta/"',
 	Domain:'"brilliantstart.cn"',
 	// Login:'"http://8.136.199.33:7778/login"',
 	// CHART_LINK:'"https://charttest.hzinsights.com/chartshow"',