diff --git a/lib/core/renderer.js b/lib/core/renderer.js index dd0b5ddf8e..14bbea5482 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -186,7 +186,7 @@ export default class Renderer extends Tapable { } const handler = m.handler || m - const path = (((m.prefix !== false) ? this.options.router.base : '') + (m.path ? m.path : '')).replace(/\/\//g, '/') + const path = (((m.prefix !== false) ? this.options.router.base : '') + (typeof m.path === 'string' ? m.path : '')).replace(/\/\//g, '/') // Inject $src and $m to final handler if (src) handler.$src = src