diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 62e6ace5..e72e4555 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -33,6 +33,8 @@ export default { .fixed-header+.app-main { padding-top: 50px; + height: 100vh; + overflow: auto; } .hasTagsView { diff --git a/vue.config.js b/vue.config.js index 1bcdd190..dcb0c248 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,6 +7,9 @@ function resolve(dir) { } const name = defaultSettings.title || 'vue Element Admin' // page title +// If your port is set to 80, +// use administrator privileges to execute the command line. +// For example, Mac: sudo npm run const port = 9527 // dev port // All configuration item explanations can be find in https://cli.vuejs.org/config/