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

删除没用的代码

parent e5d2776e
<template>
<div class="app-container home">
<el-skeleton animated style="width: 100%">
<el-skeleton animated style="width: 100%">
<template slot="template">
<span style="line-height: 45px;color: #d9d9d9;font-weight: 700;">
{{version}} LOADING...
{{version}} LOADING...
</span>
<el-skeleton :rows="15" />
</template>
</el-skeleton>
</div>
</template>
<script>
import { getRouters } from '@/api/menu'
import { menus } from '@/assets/menu'
export default {
name: "Index",
mounted() {
/* 递归设置*/
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"
}
}
},
data() {
return {
// 版本号
version: "3.8.3",
};
},
methods: {
return componentInfo
}
console.log('系统管理',dgCrateRoutes(menus,0))
},
data() {
return {
// 版本号
version: "3.8.3",
};
},
methods: {
goTarget(href) {
window.open(href, "_blank");
},
},
};
};
</script>
<style scoped lang="scss">
.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;
}
.home {
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}
ul {
padding: 0;
margin: 0;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
.col-item {
margin-bottom: 20px;
}
ul {
list-style-type: none;
}
ul {
padding: 0;
margin: 0;
}
h4 {
margin-top: 0px;
}
font-family: "open sans",
"Helvetica Neue",
Helvetica,
Arial,
sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
h2 {
margin-top: 10px;
font-size: 26px;
font-weight: 100;
}
ul {
list-style-type: none;
}
p {
margin-top: 10px;
h4 {
margin-top: 0px;
}
b {
font-weight: 700;
h2 {
margin-top: 10px;
font-size: 26px;
font-weight: 100;
}
p {
margin-top: 10px;
b {
font-weight: 700;
}
}
}
.update-log {
ol {
display: block;
list-style-type: decimal;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: 40px;
.update-log {
ol {
display: block;
list-style-type: decimal;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0;
margin-inline-end: 0;
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