mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-23 23:57:49 +00:00
store命名优化
This commit is contained in:
@@ -3,7 +3,7 @@ import { ref, computed } from 'vue'
|
||||
import { Mute } from '@element-plus/icons-vue'
|
||||
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { el_loading_options } from '@/const/commonConst'
|
||||
import { userStore, groupStore, messageStore, userCardStore } from '@/stores'
|
||||
import { useUserStore, useGroupStore, useMessageStore, useUserCardStore } from '@/stores'
|
||||
import {
|
||||
groupUpdateMuteService,
|
||||
groupChangeRoleService,
|
||||
@@ -19,10 +19,10 @@ import { MsgType } from '@/proto/msg'
|
||||
const props = defineProps(['groupId', 'memberSearchKey'])
|
||||
const emit = defineEmits(['openSession'])
|
||||
|
||||
const userData = userStore()
|
||||
const groupData = groupStore()
|
||||
const messageData = messageStore()
|
||||
const userCardData = userCardStore()
|
||||
const userData = useUserStore()
|
||||
const groupData = useGroupStore()
|
||||
const messageData = useMessageStore()
|
||||
const userCardData = useUserCardStore()
|
||||
|
||||
const myAccount = computed(() => userData.user.account)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user