Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
lxyl-vue
Commits
137e7e6d
Commit
137e7e6d
authored
Nov 30, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除没用的代码
parent
e5d2776e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
115 deletions
+77
-115
index.vue
src/views/index.vue
+77
-115
No files found.
src/views/index.vue
View file @
137e7e6d
<
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment