From dab89fe86e0ca95d47105e97f515a9771fbf110c Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 21 Oct 2020 22:10:10 +0800 Subject: [PATCH] feat(Image): skip render loading placeholder during ssr (#7383) --- src/image/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image/index.js b/src/image/index.js index e5aa5be05..b1daea8ee 100644 --- a/src/image/index.js +++ b/src/image/index.js @@ -113,7 +113,7 @@ export default createComponent({ }, genPlaceholder() { - if (this.loading && this.showLoading) { + if (this.loading && this.showLoading && inBrowser) { return (
{this.slots('loading') || (