Commit 2e9c8b0e by 李伟康

commit

1 parent f8234555
......@@ -38,8 +38,7 @@ export default {
data.productCode = 'PC00025'
return window.$HTTP({
url,
data,
returnAll
data
})
}
}
......@@ -51,24 +51,20 @@ export default {
}
},
activated() {
ssoApi.getPermission().then(({ code, data, message }) => {
if (code == 0) {
let list = data[0].products[0].merchantProTreeResponses[0].children
if (list && list.length) {
list.map(e => {
if (e.children) {
e.children.map(i => {
let [link, target] = i.menuUrl.split('@')
i.icon = link.replace(/\//g, '_')
i.link = link
i.target = target
})
}
})
this.list = list
}
} else {
Notify(message)
ssoApi.getPermission().then(data => {
let list = data[0].products[0].merchantProTreeResponses[0].children
if (list && list.length) {
list.map(e => {
if (e.children) {
e.children.map(i => {
let [link, target] = i.menuUrl.split('@')
i.icon = link.replace(/\//g, '_')
i.link = link
i.target = target
})
}
})
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!