Commit 8c3d7196 by 李伟康

修改mock返回数据

1 parent 4a620100
......@@ -63,12 +63,12 @@ module.exports = {
}
},
//根据企微配置特殊菜单
menuList: [
specialMenuList: [
{
label: '喜报早报记录',
menuUrl: 'chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png',
menuUrl: encodeURIComponent('chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png'),
corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e'],
parentLabel: '工作台'
parentLabel: '工作台',
}
],
......
......@@ -37,7 +37,7 @@
</template>
<script type='text/ecmascript-6'>
const { subsystemInfo, menuList } = window.$fetchConfig
const { subsystemInfo, specialMenuList } = window.$fetchConfig
import { ssoApi } from '@/api'
export default {
name: '',
......@@ -56,20 +56,20 @@ export default {
let list = merchantProTreeResponses.children
if (list && list.length) {
list.map(e => {
menuList.map(m => {
if (e.children) {
if (e.children) {
specialMenuList.map(m => {
if (e.label == m.parentLabel && m.corpIds.includes(entmicroId)) e.children.push(m)
e.children.map(i => {
let [url, item] = i.menuUrl.split('@')
let [target, icon] = item.split('|')
let [link, query] = url.split('?')
i.icon = icon
i.link = link
i.target = target
i.query = query
})
}
})
})
e.children.map(i => {
let [url, item] = decodeURIComponent(i.menuUrl).split('@')
let [target, icon] = item.split('|')
let [link, query] = url.split('?')
i.icon = icon
i.link = link
i.target = target
i.query = query
})
}
})
this.list = list
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!