Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4a62687b
authored
May 13, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
e8cf8441
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
src/components/menu.vue
src/main.js
src/components/menu.vue
View file @
4a62687b
...
...
@@ -8,9 +8,9 @@
<font
class=
"fl"
>
概况
</font>
</a>
<a
class=
"item fl"
:class=
"
{'act':item.path==$route.path}"
:href="'/#'+item.path
" v-for="item in tabs">
<a
class=
"item fl"
:class=
"
{'act':item.path==$route.path}"
@click="tabUrl(item)
" v-for="item in tabs">
<font
class=
"fl"
>
{{
item
.
title
}}
</font>
<span
class=
"icon iconfont fl"
@
click
.
prevent
=
"closetab(item.path)"
>
</span>
<span
class=
"icon iconfont fl"
@
click
.
stop
=
"closetab(item.path)"
>
</span>
</a>
</div>
<div
class=
"user-box fr"
>
...
...
@@ -208,6 +208,9 @@
})
},
tabUrl
(
item
){
this
.
$router
.
push
({
path
:
item
.
path
,
query
:
item
.
query
})
},
changePwd
()
{
this
.
dialogVisible
=
true
;
},
...
...
src/main.js
View file @
4a62687b
...
...
@@ -37,11 +37,13 @@ router.afterEach((to, from, next) => {
}
if
(
tabNewJson
.
indexOf
(
JSON
.
stringify
({
path
:
to
.
path
,
title
:
to
.
meta
.
title
title
:
to
.
meta
.
title
,
query
:
to
.
query
}))
==
-
1
)
{
tabOldJson
.
push
({
path
:
to
.
path
,
title
:
to
.
meta
.
title
title
:
to
.
meta
.
title
,
query
:
to
.
query
})
}
}
else
{
...
...
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