Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99765c7

Browse files
author
Guillaume Chau
committed
fix: ssrPrefetch not an array
1 parent 68ded05 commit 99765c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/server/render.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ const normalizeRender = vm => {
5050
}
5151

5252
function waitForSsrPrefetch (vm, resolve, reject) {
53-
const handlers = vm.$options.ssrPrefetch
53+
let handlers = vm.$options.ssrPrefetch
5454
if (isDef(handlers)) {
55+
if (!Array.isArray(handlers)) handlers = [handlers]
5556
try {
5657
const promises = []
5758
for (let i = 0, j = handlers.length; i < j; i++) {

0 commit comments

Comments
 (0)