We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afdc7bf commit ee0f3caCopy full SHA for ee0f3ca
.env
@@ -3,4 +3,5 @@
3
4
# 接口的域名
5
# VUE_APP_BASE_HOST=http://yourserver
6
-VUE_APP_BASE_API=/
+VUE_APP_BASE_API=/
7
+VUE_APP_BASE_URL=/h5-vue/
vue.config.js
@@ -29,6 +29,8 @@ fs.readdirSync(pagesDir)
29
console.info(`pages config:${JSON.stringify(pagesCofig)}`);
30
31
module.exports = {
32
+ baseUrl:
33
+ process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_URL : '/',
34
productionSourceMap: false,
35
// multi-page 多页模式
36
pages: pagesCofig,
0 commit comments