chore: 冗余代码优化
This commit is contained in:
parent
3ba0e169b2
commit
43a0ce6d76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user