Commit 137e7e6d authored by 李苏's avatar 李苏 💬

删除没用的代码

parent e5d2776e
<template>
<div class="app-container home">
<el-skeleton animated style="width: 100%">
<template slot="template">
<span style="line-height: 45px;color: #d9d9d9;font-weight: 700;">
......@@ -12,57 +10,17 @@
</el-skeleton>
</div>
</template>
<script>
import { getRouters } from '@/api/menu'
import { menus } from '@/assets/menu'
export default {
import {
getRouters
} from '@/api/menu'
import {
menus
} from '@/assets/menu'
export default {
name: "Index",
mounted() {
/* 递归设置*/
function dgCrateRoutes(arr,pid){
let oldarr = JSON.parse(JSON.stringify(arr))
let outarr = []
oldarr.forEach((e,index)=>{
if(e.fmkid==pid){
let routes=routing(e.mkid)
let news={...e,...routes}
outarr.push(news)
e.children=dgCrateRoutes(oldarr,e.mkid)
}
})
return outarr
}
function routing(mkid){
let componentInfo={}
if(mkid=="101001300"){
componentInfo={
component: "system/user/index",
hidden:false,
mata:{
"title": "用户管理",
"icon": "user",
"noCache": false,
"link": null
},
name:'User',
path:"user"
}
}else if(mkid=='101000000'){
componentInfo={
component: "Layout",
alwaysShow: true,
hidden: false,
name: "System",
path: "/system",
redirect: "noRedirect"
}
}
return componentInfo
}
console.log('系统管理',dgCrateRoutes(menus,0))
},
data() {
return {
......@@ -71,27 +29,27 @@ export default {
};
},
methods: {
goTarget(href) {
window.open(href, "_blank");
},
},
};
};
</script>
<style scoped lang="scss">
.home {
.home {
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
.col-item {
margin-bottom: 20px;
}
......@@ -101,7 +59,11 @@ export default {
margin: 0;
}
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "open sans",
"Helvetica Neue",
Helvetica,
Arial,
sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
......@@ -139,5 +101,5 @@ export default {
padding-inline-start: 40px;
}
}
}
}
</style>
\ No newline at end of file
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