guhongwei 2 年之前
父節點
當前提交
5df96febaf
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 1
      .env
  2. 3 2
      vue.config.js

+ 1 - 1
.env

@@ -1,3 +1,3 @@
 VUE_APP_AXIOS_BASE_URL = ''
-VUE_APP_ROUTER=""
+VUE_APP_ROUTER="pweb"
 VUE_APP_HOST="http://broadcast.waityou24.cn"

+ 3 - 2
vue.config.js

@@ -1,7 +1,8 @@
 const path = require('path');
 const common = path.resolve(__dirname, '../common');
 module.exports = {
-  outputDir: `pweb`,
+  publicPath: `/${process.env.VUE_APP_ROUTER}`,
+  outputDir: `${process.env.VUE_APP_ROUTER}`,
   productionSourceMap: false,
   configureWebpack: (config) => {
     Object.assign(config, {
@@ -22,7 +23,7 @@ module.exports = {
         target: 'http://broadcast.waityou24.cn',
       },
       '/projectadmin/api': {
-        target: 'http://127.0.0.1:10102', //http://127.0.0.1:10102  http://www.freeskyghw.cn
+        target: 'https://broadcast.waityou24.cn', //http://127.0.0.1:10102  http://www.freeskyghw.cn
         changeOrigin: true,
         ws: false,
       },