pull/1/head
yutent 2022-10-10 19:33:59 +08:00
parent 4820954125
commit a03b533d31
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ export default function createServer(root = '', conf = {}) {
res.setHeader('content-type', MIME_TYPES[ext])
code = fs.cat(join(root, pathname))
if (code === null) {
console.error(pathnam, '文件不存在')
console.error(pathname, '文件不存在')
res.writeHead(404, 'Not Found')
res.end('')
return

View File

@ -1,7 +1,7 @@
{
"name": "@bytedo/vue-live",
"type": "module",
"version": "0.0.3",
"version": "0.0.4",
"bin": {
"vue-live": "index.js"
},