浏览代码

20200801
把聊天放到顶部

yf 4 年之前
父节点
当前提交
64d7566548
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 8 0
      src/api/webim/index.js
  2. 1 1
      src/views/webim/im.vue

+ 8 - 0
src/api/webim/index.js

@@ -9,6 +9,14 @@ export function list(query) {
   })
 }
 // 获取人员列表
+export function newList(query) {
+  return request({
+    url: '/webim/deptList',
+    method: 'get',
+    params: query
+  })
+}
+// 获取人员列表
 export function getMine(query) {
   return request({
     url: '/webim/mine',

+ 1 - 1
src/views/webim/im.vue

@@ -40,7 +40,7 @@
   import { device, typeOf } from '@/utils/utils'
   import storage from '@/utils/storage'
   import IMStore from '@/store/store'
-  import {list,getMine,getHistory,getChatlog,setOnlineStatus} from '@/api/webim/index'
+  import {list,newList,getMine,getHistory,getChatlog,setOnlineStatus} from '@/api/webim/index'
 
 
   export default {