Commit 2e9c8b0e by 李伟康

commit

1 parent f8234555
...@@ -38,8 +38,7 @@ export default { ...@@ -38,8 +38,7 @@ export default {
data.productCode = 'PC00025' data.productCode = 'PC00025'
return window.$HTTP({ return window.$HTTP({
url, url,
data, data
returnAll
}) })
} }
} }
...@@ -51,24 +51,20 @@ export default { ...@@ -51,24 +51,20 @@ export default {
} }
}, },
activated() { activated() {
ssoApi.getPermission().then(({ code, data, message }) => { ssoApi.getPermission().then(data => {
if (code == 0) { let list = data[0].products[0].merchantProTreeResponses[0].children
let list = data[0].products[0].merchantProTreeResponses[0].children if (list && list.length) {
if (list && list.length) { list.map(e => {
list.map(e => { if (e.children) {
if (e.children) { e.children.map(i => {
e.children.map(i => { let [link, target] = i.menuUrl.split('@')
let [link, target] = i.menuUrl.split('@') i.icon = link.replace(/\//g, '_')
i.icon = link.replace(/\//g, '_') i.link = link
i.link = link i.target = target
i.target = target })
}) }
} })
}) this.list = list
this.list = list
}
} else {
Notify(message)
} }
this.flag = true this.flag = true
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!