|
@@ -101,7 +101,7 @@
|
|
|
<div style="width: 40px; height: 40px;">
|
|
|
<v-avatar>
|
|
|
<v-img
|
|
|
- :src="val.from_uid === IM.uid ? mAvatar : info.avatar"
|
|
|
+ :src="val.from_uid === IM.uid ? mAvatar : getUserAvatar(info.avatar, info.sex)"
|
|
|
:width="40"
|
|
|
height="40"
|
|
|
rounded
|
|
@@ -206,7 +206,8 @@ import { timesTampChange } from '@/utils/date'
|
|
|
import { useIMStore } from '@/store/im'
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
-import { getDictValueWithLabel } from '@/utils/position'
|
|
|
+// import { getDictValueWithLabel } from '@/utils/position'
|
|
|
+import { getUserAvatar } from '@/utils/avatar'
|
|
|
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
const isEnterprise = inject('isEnterprise')
|
|
@@ -242,7 +243,7 @@ const IM = useIMStore()
|
|
|
const userStore = useUserStore()
|
|
|
const loading = ref(false)
|
|
|
|
|
|
-const mAvatar = userStore.baseInfo?.avatar || 'https://minio.citupro.com/dev/menduner/7.png'
|
|
|
+const mAvatar = getUserAvatar(userStore.baseInfo?.avatar, userStore.baseInfo?.sex)
|
|
|
|
|
|
const chatRef = ref()
|
|
|
const inputVal = ref('')
|