Commit ec65fae9 by 李伟康

commit

1 parent 198fa1b1
......@@ -56,27 +56,30 @@ export default {
},
activated () {
ssoApi.getPermission().then(data => {
let [merchantProTreeResponses] = data[0].products[0].merchantProTreeResponses
if (merchantProTreeResponses) {
let list = merchantProTreeResponses.children
if (list && list.length) {
list.map(e => {
if (e.children) {
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
})
}
})
console.log(list)
this.list = list
if (data && data.length) {
let [merchantProTreeResponses] = data[0].products[0].merchantProTreeResponses
if (merchantProTreeResponses) {
let list = merchantProTreeResponses.children
if (list && list.length) {
list.map(e => {
if (e.children) {
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
})
}
})
console.log(list)
this.list = list
}
}
}
this.flag = true
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!