增加docker镜像
diff --git a/frontend/vue.config.js b/frontend/vue.config.js
index dfe2483..19b8cb8 100644
--- a/frontend/vue.config.js
+++ b/frontend/vue.config.js
@@ -14,7 +14,12 @@
// You can change the port by the following method:
// port = 9527 npm run dev OR npm run dev --port = 9527
const port = process.env.port || process.env.npm_config_port || 9527 // dev port
-
+var publicPath = 'portal'
+if (process.env.NODE_ENV === 'development') {
+ publicPath = '/portal'
+} else if (process.env.NODE_ENV === 'production') {
+ publicPath = '/portal/pages'
+}
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
/**
@@ -24,7 +29,7 @@
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
- publicPath: '/portal',
+ publicPath: publicPath,
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',