From 41318aa0d932847b835f4274182eff62e7ed21f2 Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 5 May 2019 15:02:27 +0800 Subject: [PATCH 1/2] docs: tips for set port --- vue.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vue.config.js b/vue.config.js index 30d40ea6..aeaeb0e4 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/ From e8e6c7e79c2488779090f00efc5f1bbfcb04bd5b Mon Sep 17 00:00:00 2001 From: Pan Date: Sun, 5 May 2019 15:49:56 +0800 Subject: [PATCH 2/2] perf: optimize page scrolling when setting fixedHeader tweak --- src/layout/components/AppMain.vue | 2 ++ 1 file changed, 2 insertions(+) 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 {