转移群主后头像颜色变化

This commit is contained in:
bob
2024-12-13 15:09:39 +08:00
parent adbc62cfae
commit 6ddbd5b5da

View File

@@ -37,8 +37,13 @@ const firstChar = computed(() => {
return props.showName ? props.showName.charAt(0) : '*'
})
const randomColor = getRandomColor(props.showName || props.showId)
const fontColor = getFontColor(randomColor)
const randomColor = computed(() => {
return getRandomColor(props.showName || props.showId)
})
const fontColor = computed(() => {
return getFontColor(randomColor.value)
})
const statusCircleColor = computed(() => {
switch (props.userStatus) {