From 888b141a27ab29f51d6fa8f1ab95102a3eb34fe4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 5 Sep 2017 21:16:06 +0430 Subject: [PATCH] feat(renderer): allow disable router.base with prefix:false --- lib/core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index fac537f83c..08730d5fb4 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -183,7 +183,7 @@ export default class Renderer extends Tapable { } const handler = m.handler || m - const path = (this.options.router.base + (m.path ? m.path : '')).replace(/\/\//g, '/') + const path = (((m.prefix !== false) ? this.options.router.base : '') + (m.path ? m.path : '')).replace(/\/\//g, '/') // Inject $src and $m to final handler if (src) handler.$src = src