修复端口被占用时, 根目录传错的bug

pull/1/head
yutent 2023-02-21 18:52:55 +08:00
parent b740b76867
commit a875abb4b9
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ export default async function createServer(root = '', conf = {}) {
'\n'
)
conf.devServer.port = PORT + 1
createServer(SOURCE_DIR, conf)
createServer(root, conf)
})
.on('listening', _ => {
console.log('启动成功, 可通过以下地址访问')