fix(Image): mismatching warning during ssr (#7822)

This commit is contained in:
neverland
2020-12-26 15:29:46 +08:00
committed by GitHub
parent 76aa0e5dd9
commit 67e4adb389
+1 -1
View File
@@ -114,7 +114,7 @@ export default createComponent({
}, },
genPlaceholder() { genPlaceholder() {
if (this.loading && this.showLoading && inBrowser) { if (this.loading && this.showLoading) {
return ( return (
<div class={bem('loading')}> <div class={bem('loading')}>
{this.slots('loading') || ( {this.slots('loading') || (