From 38859a0bfb120f5d95e740fbf2aead72ad8bc4e0 Mon Sep 17 00:00:00 2001 From: baedyl Date: Fri, 10 Dec 2021 14:01:16 +0100 Subject: [PATCH] Modify public path vue config --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 33a63483..67d1d2fa 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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',