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>
</template>
<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 #status="{ row }">
<TableSwitch