Browse Source

修改发布

lrf402788946 5 years ago
parent
commit
f91abc912e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vue.config.js

+ 1 - 1
vue.config.js

@@ -1,7 +1,7 @@
 const path = require('path');
 const publics = path.resolve(__dirname, '../web-common');
 module.exports = {
-  publicPath: '/',
+  publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
   // 双页面配置
   // pages: {
   //   index: 'src/views/index/main.js',