Modify public path vue config

pull/3884/head
baedyl 2021-12-10 14:01:16 +01:00
parent 5fb6a714aa
commit 38859a0bfb
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
publicPath: process.env.NODE_ENV === 'production' ? '/vue-element-admin/' : '/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',