浏览代码

Merge branch 'fix_1104' into debug

yujinwen 6 天之前
父节点
当前提交
92aca4f788
共有 2 个文件被更改,包括 3 次插入3 次删除
  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"',