Ver Fonte

Merge branch 'fix_1104' into debug

yujinwen há 6 dias atrás
pai
commit
92aca4f788
2 ficheiros alterados com 3 adições e 3 exclusões
  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"',