im-MIXINS

This commit is contained in:
2022-02-23 17:28:42 +08:00
parent 853c4611ef
commit f4e44de777
14 changed files with 87 additions and 91 deletions

24
utils/im/imBase.js Normal file
View File

@@ -0,0 +1,24 @@
import utils from '@/utils/index.js'
const imBase = {
onLoad() {
console.log('IM BASE MININX');
},
data() {
return {
}
},
computed: {
contact() {
return function(targetId) {
return this.$store.getters.contactInfo(targetId)
}
},
avatarSize() {
return utils.rpx2px(84)
}
}
}
export default imBase