Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Smart_School
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
张伯涛
Smart_School
Commits
f5c5846e
Commit
f5c5846e
authored
Feb 16, 2023
by
YangAo
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
ddebf46a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.vue
src/layout/Second/Sidebar/index.vue
+6
-4
No files found.
src/layout/Second/Sidebar/index.vue
View file @
f5c5846e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
import
{
join
}
from
"path"
;
import
{
join
}
from
"path"
;
import
Item
from
"@/layout/Second/Sidebar/Item"
;
import
Item
from
"@/layout/Second/Sidebar/Item"
;
import
clone
from
'clone'
;
import
clone
from
"clone"
;
export
default
{
export
default
{
name
:
"Sidebar"
,
name
:
"Sidebar"
,
...
@@ -63,9 +63,9 @@ export default {
...
@@ -63,9 +63,9 @@ export default {
* @param menuItemList 原始菜单列表
* @param menuItemList 原始菜单列表
* @param basePath 前缀路径
* @param basePath 前缀路径
*/
*/
initMenuItemList
(
menuItemList
,
basePath
=
'/'
)
{
initMenuItemList
(
menuItemList
,
basePath
=
"/"
)
{
return
menuItemList
.
map
(
item
=>
{
return
menuItemList
.
map
(
item
=>
{
item
=
clone
(
item
)
item
=
clone
(
item
)
;
// 判断是否以basePath开头
// 判断是否以basePath开头
if
(
!
new
RegExp
(
`^(
${
basePath
}
|/)`
).
test
(
item
.
path
))
{
if
(
!
new
RegExp
(
`^(
${
basePath
}
|/)`
).
test
(
item
.
path
))
{
// 非法开头则对基于basePath进行拼接
// 非法开头则对基于basePath进行拼接
...
@@ -97,8 +97,10 @@ export default {
...
@@ -97,8 +97,10 @@ export default {
.el-scrollbar__view
{
.el-scrollbar__view
{
height
:
100%
;
height
:
100%
;
.el-menu
{
&
>
.el-menu
{
padding-top
:
30px
;
height
:
100%
;
height
:
100%
;
box-sizing
:
border-box
;
}
}
}
}
}
}
...
...
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