Merge branch 'master' into permission-control

permission-control
Pan 2019-05-05 15:55:56 +08:00
commit 27d06dd662
4 changed files with 18 additions and 9 deletions

View File

@ -1,5 +1,5 @@
language: node_js language: node_js
node_js: stable node_js: 10
script: npm run test script: npm run test
notifications: notifications:
email: false email: false

View File

@ -48,6 +48,7 @@ module.exports = app => {
ignoreInitial: true ignoreInitial: true
}).on('all', (event, path) => { }).on('all', (event, path) => {
if (event === 'change' || event === 'add') { if (event === 'change' || event === 'add') {
try {
// remove mock routes stack // remove mock routes stack
app._router.stack.splice(mockStartIndex, mockRoutesLength) app._router.stack.splice(mockStartIndex, mockRoutesLength)
@ -59,6 +60,9 @@ module.exports = app => {
mockStartIndex = mockRoutes.mockStartIndex mockStartIndex = mockRoutes.mockStartIndex
console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`)) console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
} catch (error) {
console.log(chalk.redBright(error))
}
} }
}) })
} }

View File

@ -27,5 +27,7 @@ export default {
} }
.fixed-header+.app-main { .fixed-header+.app-main {
padding-top: 50px; padding-top: 50px;
height: 100vh;
overflow: auto;
} }
</style> </style>

View File

@ -7,6 +7,9 @@ function resolve(dir) {
} }
const name = defaultSettings.title || 'vue Admin Template' // page title const name = defaultSettings.title || 'vue Admin Template' // 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 = 9528 // dev port const port = 9528 // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/ // All configuration item explanations can be find in https://cli.vuejs.org/config/