|
@@ -6,7 +6,7 @@ import { getConversationSync, getMessageSync, getChatKey, setUnread, deleteConve
|
|
|
import { Base64 } from 'js-base64'
|
|
|
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
-import { isEnterprise } from '@/utils/auth'
|
|
|
+import { getIsEnterprise } from '@/utils/auth'
|
|
|
import { useIMStore } from '@/store/im'
|
|
|
|
|
|
|
|
@@ -97,7 +97,7 @@ export function useDataSource () {
|
|
|
const query = {
|
|
|
msg_count: 1
|
|
|
}
|
|
|
- if (isEnterprise()) {
|
|
|
+ if (getIsEnterprise()) {
|
|
|
Object.assign(query, { enterpriseId: userStore.entBaseInfo.enterpriseId })
|
|
|
}
|
|
|
const resultConversations = []
|
|
@@ -130,7 +130,7 @@ export function useDataSource () {
|
|
|
limit,
|
|
|
pull_mode,
|
|
|
}
|
|
|
- if (isEnterprise()) {
|
|
|
+ if (getIsEnterprise()) {
|
|
|
Object.assign(query, { enterpriseId: userStore.entBaseInfo.enterpriseId })
|
|
|
}
|
|
|
const resp = await getMessageSync(query)
|
|
@@ -159,7 +159,7 @@ async function getKey () {
|
|
|
// userId: userStore.accountInfo.userId
|
|
|
userId: JSON.parse(localStorage.getItem('accountInfo')).userId
|
|
|
}
|
|
|
- if (isEnterprise()) {
|
|
|
+ if (getIsEnterprise()) {
|
|
|
Object.assign(keyQuery, { enterpriseId: userStore.entBaseInfo.enterpriseId })
|
|
|
console.log('企业模式', keyQuery)
|
|
|
}
|