chore: 冗余代码优化

This commit is contained in:
dap 2024-11-11 17:45:17 +08:00
parent 3ba0e169b2
commit 43a0ce6d76

View File

@ -243,8 +243,8 @@ const { hasAccessByCodes } = useAccess();
</Space> </Space>
</template> </template>
<template #avatar="{ row }"> <template #avatar="{ row }">
<Avatar v-if="row.avatar" :src="row.avatar" /> <!-- 可能要判断空字符串情况 所以没有使用?? -->
<Avatar v-else :src="preferences.app.defaultAvatar" /> <Avatar :src="row.avatar || preferences.app.defaultAvatar" />
</template> </template>
<template #status="{ row }"> <template #status="{ row }">
<TableSwitch <TableSwitch