增加群聊功能
This commit is contained in:
@@ -194,7 +194,6 @@
|
||||
*/
|
||||
const getCode = () => {
|
||||
authCaptcha().then(res => {
|
||||
console.log(res)
|
||||
vdata.formData.img = res.code
|
||||
vdata.formData.uuid = res.uuid
|
||||
})
|
||||
|
||||
@@ -78,12 +78,26 @@
|
||||
},
|
||||
async init() {
|
||||
const res = await menusStore.getMenus()
|
||||
this.tabbar = res.filter(v => v.type == 0 && v.children.length && !v.hidden).map(v => {
|
||||
const arr=res.filter(v => v.type == 0 && v.children.length && !v.hidden).map(v => {
|
||||
return {
|
||||
...v,
|
||||
children: v.children.filter(child => child.type == 0 && !child.hidden)
|
||||
}
|
||||
})
|
||||
arr.push({
|
||||
title: '群聊管理',
|
||||
miniIcon: '',
|
||||
miniPath: '',
|
||||
type: 0,
|
||||
children: [
|
||||
{
|
||||
title:'群聊管理',
|
||||
miniIcon:'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/3/ef5566de3c10411e96fa4213381836a9.png',
|
||||
miniPath:'pageChat/index',
|
||||
}
|
||||
]
|
||||
})
|
||||
this.tabbar = arr
|
||||
console.log(this.tabbar);
|
||||
},
|
||||
// 点击左边的栏目切换
|
||||
|
||||
Reference in New Issue
Block a user