This commit is contained in:
Pooya Parsa 2017-05-21 19:49:49 +04:30
parent 38e7dd509a
commit dabfe68009
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ async function generateRoutesAndFiles () {
const files = await glob('pages/**/*.vue', {cwd: this.srcDir})
templateVars.router.routes = createRoutes(files, this.srcDir)
} else {
templateVars.router.routes = this.createRoutes.call(this, this.srcDir)
templateVars.router.routes = this.createRoutes(this.srcDir)
}
if (typeof this.options.router.extendRoutes === 'function') {
// let the user extend the routes

View File

@ -79,7 +79,7 @@ export async function render (req, res) {
const pushAssets = []
let m
while (m = regex.exec(resourceHints)) { // eslint-disable-line no-cond-assign
const [_, rel, href, as] = m
const [_, rel, href, as] = m // eslint-disable-line no-unused-vars
if (rel === 'preload') {
pushAssets.push(`<${href}>; rel=${rel}; as=${as}`)
}