mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
refactor: fix [TypeError: Cannot read property split of undefined] in tests
This commit is contained in:
parent
fafe6d0a81
commit
2228bf4209
@ -147,7 +147,7 @@ Options.from = function (_options) {
|
||||
_.defaultsDeep(options, modePreset)
|
||||
|
||||
// If no server-side rendering, add appear true transition
|
||||
if (options.render.ssr === false) {
|
||||
if (options.render.ssr === false && options.transition) {
|
||||
options.transition.appear = true
|
||||
}
|
||||
|
||||
|
3
test/fixtures/basic/nuxt.config.js
vendored
3
test/fixtures/basic/nuxt.config.js
vendored
@ -13,5 +13,6 @@ module.exports = {
|
||||
},
|
||||
bad: null,
|
||||
'': true
|
||||
}
|
||||
},
|
||||
transition: false
|
||||
}
|
||||
|
3
test/fixtures/spa/nuxt.config.js
vendored
3
test/fixtures/spa/nuxt.config.js
vendored
@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
rootDir: __dirname,
|
||||
mode: 'spa',
|
||||
dev: false
|
||||
dev: false,
|
||||
transition: false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user