默认头像防止裂图

This commit is contained in:
2024-04-16 20:10:36 +08:00
parent 91b81b8bf4
commit 9b2bbc1649

View File

@ -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")