From 221bb8800f4d3aefc9ddc8fa5435ae8ab8f2a151 Mon Sep 17 00:00:00 2001 From: Wu Haotian Date: Fri, 11 Aug 2017 17:36:05 +0800 Subject: [PATCH] Fix class component checks for extended components --- lib/app/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/server.js b/lib/app/server.js index 11f011ea0b..b45c4dad79 100644 --- a/lib/app/server.js +++ b/lib/app/server.js @@ -79,7 +79,7 @@ export default async context => { let Components = [] try { Components = await Promise.all(getMatchedComponents(router.match(context.url)).map(Component => { - if (typeof Component !== 'function' || Component.super === Vue) { + if (typeof Component !== 'function' || Component.cid) { return sanitizeComponent(Component) } return Component().then(Component => sanitizeComponent(Component))