mirror of
https://github.com/youzan/vant.git
synced 2026-05-04 01:01:23 +08:00
feat(Image): skip render loading placeholder during ssr (#7383)
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
genPlaceholder() {
|
||||
if (this.loading && this.showLoading) {
|
||||
if (this.loading && this.showLoading && inBrowser) {
|
||||
return (
|
||||
<div class={bem('loading')}>
|
||||
{this.slots('loading') || (
|
||||
|
||||
Reference in New Issue
Block a user