默认头像防止裂图
This commit is contained in:
parent
91b81b8bf4
commit
9b2bbc1649
@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
.user
|
||||
.header
|
||||
img.avatar(:src="user.avatar")
|
||||
img.avatar(:src="user.avatar" onerror="this.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'")
|
||||
h1
|
||||
span.name {{ user.name }}
|
||||
span.admin(v-if="user.gid === 1")
|
||||
|
Loading…
Reference in New Issue
Block a user