优化单页应用时,访问地址增加默认配置
parent
e9a9cadd3b
commit
cc027b3567
|
@ -62,7 +62,14 @@ export default function createServer(root = '', conf = {}) {
|
|||
}
|
||||
pathname = pathname.join('/')
|
||||
} else {
|
||||
if (IS_MPA) {
|
||||
isIndex = true
|
||||
} else {
|
||||
pageName = Object.keys(conf.pages).pop()
|
||||
currentPage = pageName
|
||||
pagesDir = dirname(conf.pages[pageName].entry)
|
||||
ext = 'html'
|
||||
}
|
||||
}
|
||||
|
||||
for (let k in COMMON_HEADERS) {
|
||||
|
|
Loading…
Reference in New Issue