Commit 999da0f8 by liang ce

router 判断

parent f53fcc72
......@@ -54,6 +54,7 @@ export default {
$http.post('/admin/menu/user', data).then(res => {
const result = that.getSelectList(res.data.data)
store.dispatch('setMenuList', that.selectList)
console.log(that.selectList)
})
config.ddconfig()
},
......@@ -69,6 +70,7 @@ export default {
this.$router.push({ name: obj.key })
},
getSelectList (data) {
console.log(data, '12313123')
let that = this
const addKey = data => data.map(item => {
if (item.children.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment