mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): router defaults overwrite custom options always (#8334)
This commit is contained in:
parent
0106e09e32
commit
7b16719649
@ -145,7 +145,7 @@ export default defineNuxtModule({
|
|||||||
))).filter(Boolean) as string[]
|
))).filter(Boolean) as string[]
|
||||||
|
|
||||||
// Add default options
|
// Add default options
|
||||||
routerOptionsFiles.unshift(resolve(runtimeDir, 'router.options'))
|
routerOptionsFiles.push(resolve(runtimeDir, 'router.options'))
|
||||||
|
|
||||||
const configRouterOptions = genObjectFromRawEntries(Object.entries(nuxt.options.router.options)
|
const configRouterOptions = genObjectFromRawEntries(Object.entries(nuxt.options.router.options)
|
||||||
.map(([key, value]) => [key, genString(value as string)]))
|
.map(([key, value]) => [key, genString(value as string)]))
|
||||||
|
Loading…
Reference in New Issue
Block a user