Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bims
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
bims
Commits
79bea397
Commit
79bea397
authored
3 years ago
by
yanglilong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yanglilong' of git.ssish.com:sunhailiang/bims into test
parents
379858e9
e05b7274
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
icon.vue
src/components/Icon/icon.vue
+2
-2
Header.vue
src/views/layout/components/Header.vue
+1
-0
subMenu.vue
src/views/layout/components/menu/subMenu.vue
+4
-3
No files found.
src/components/Icon/icon.vue
View file @
79bea397
...
@@ -32,8 +32,8 @@ export default {
...
@@ -32,8 +32,8 @@ export default {
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
clickEvent
()
{
clickEvent
(
e
)
{
this
.
$emit
(
"
click
"
);
this
.
$emit
(
"
click
"
,
e
);
},
},
},
},
};
};
...
...
This diff is collapsed.
Click to expand it.
src/views/layout/components/Header.vue
View file @
79bea397
...
@@ -44,6 +44,7 @@ export default {
...
@@ -44,6 +44,7 @@ export default {
loginOut
()
{
loginOut
()
{
this
.
$apis
.
LOGINOUT
().
then
((
res
)
=>
{
this
.
$apis
.
LOGINOUT
().
then
((
res
)
=>
{
if
(
res
.
returnCode
)
{
if
(
res
.
returnCode
)
{
this
.
$store
.
commit
(
"
common/setMenuStack
"
,
[]);
this
.
$router
.
push
(
"
/login
"
);
this
.
$router
.
push
(
"
/login
"
);
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
||
"
退出失败
"
);
this
.
$message
.
error
(
res
.
returnMsg
||
"
退出失败
"
);
...
...
This diff is collapsed.
Click to expand it.
src/views/layout/components/menu/subMenu.vue
View file @
79bea397
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
:to="item.path"
:to="item.path"
>
>
{{
item
.
title
}}
{{
item
.
title
}}
<Icon
<Icon
v-if=
"menuStack.length>1"
@
click=
"
closeMenu(
index)"
@
click=
"
(e)=>closeMenu(e,
index)"
:name=
"isVisit(item.path) ? 'ssiclose_active' : 'ssiclose'"
:name=
"isVisit(item.path) ? 'ssiclose_active' : 'ssiclose'"
:size=
"16"
:size=
"16"
/>
/>
...
@@ -31,7 +31,8 @@ export default {
...
@@ -31,7 +31,8 @@ export default {
const
path
=
this
.
$route
.
path
;
const
path
=
this
.
$route
.
path
;
return
path
===
val
;
return
path
===
val
;
},
},
closeMenu
(
index
)
{
closeMenu
(
e
,
index
)
{
e
.
stopPropagation
();
const
menuStack
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
menuStack
));
const
menuStack
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
menuStack
));
const
isVisit
=
this
.
isVisit
(
menuStack
[
index
].
path
);
const
isVisit
=
this
.
isVisit
(
menuStack
[
index
].
path
);
menuStack
.
splice
(
index
,
1
);
menuStack
.
splice
(
index
,
1
);
...
...
This diff is collapsed.
Click to expand it.
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