mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
feat(renderer): allow disable router.base with prefix:false
This commit is contained in:
parent
0326c2cd54
commit
888b141a27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user