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

删除没用的代码

parent e5d2776e
<template> <template>
<div class="app-container home"> <div class="app-container home">
<el-skeleton animated style="width: 100%"> <el-skeleton animated style="width: 100%">
<template slot="template"> <template slot="template">
<span style="line-height: 45px;color: #d9d9d9;font-weight: 700;"> <span style="line-height: 45px;color: #d9d9d9;font-weight: 700;">
...@@ -12,57 +10,17 @@ ...@@ -12,57 +10,17 @@
</el-skeleton> </el-skeleton>
</div> </div>
</template> </template>
<script> <script>
import { getRouters } from '@/api/menu' import {
import { menus } from '@/assets/menu' getRouters
export default { } from '@/api/menu'
import {
menus
} from '@/assets/menu'
export default {
name: "Index", name: "Index",
mounted() { 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() { data() {
return { return {
...@@ -71,27 +29,27 @@ export default { ...@@ -71,27 +29,27 @@ export default {
}; };
}, },
methods: { methods: {
goTarget(href) {
window.open(href, "_blank");
},
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.home { .home {
blockquote { blockquote {
padding: 10px 20px; padding: 10px 20px;
margin: 0 0 20px; margin: 0 0 20px;
font-size: 17.5px; font-size: 17.5px;
border-left: 5px solid #eee; border-left: 5px solid #eee;
} }
hr { hr {
margin-top: 20px; margin-top: 20px;
margin-bottom: 20px; margin-bottom: 20px;
border: 0; border: 0;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.col-item { .col-item {
margin-bottom: 20px; margin-bottom: 20px;
} }
...@@ -101,7 +59,11 @@ export default { ...@@ -101,7 +59,11 @@ export default {
margin: 0; 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; font-size: 13px;
color: #676a6c; color: #676a6c;
overflow-x: hidden; overflow-x: hidden;
...@@ -139,5 +101,5 @@ export default { ...@@ -139,5 +101,5 @@ export default {
padding-inline-start: 40px; padding-inline-start: 40px;
} }
} }
} }
</style> </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