Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
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
office
haoban-4
Commits
5291decf
Commit
5291decf
authored
Dec 01, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 测试 刷新
parent
06d5d0fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
index.vue
src/views/apps/index.vue
+6
-1
No files found.
src/views/apps/index.vue
View file @
5291decf
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-1
0-23 10:41:31
* @LastEditTime: 2020-1
2-01 17:09:04
-->
-->
<
template
>
<
template
>
<div
class=
"enterprise-wrap"
>
<div
class=
"enterprise-wrap"
>
...
@@ -112,6 +112,11 @@ export default {
...
@@ -112,6 +112,11 @@ export default {
}
}
// 这里考虑有子级情况,后端接口返回是一个一个的菜单,不是父子级
// 这里考虑有子级情况,后端接口返回是一个一个的菜单,不是父子级
that
.
appMenuData
=
await
that
.
treeData
(
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
)));
that
.
appMenuData
=
await
that
.
treeData
(
JSON
.
parse
(
JSON
.
stringify
(
res
.
result
)));
// 避免刷新后跳转路由改变
const
pathArr
=
res
.
result
.
map
(
ele
=>
ele
.
menuUrl
).
join
(
','
);
if
(
pathArr
.
indexOf
(
that
.
$route
.
path
)
!=
-
1
)
{
return
false
;
}
if
(
that
.
appMenuData
[
0
]
&&
!!
that
.
appMenuData
[
0
].
children
&&
!!
that
.
appMenuData
[
0
].
children
.
length
&&
!!
that
.
appMenuData
[
0
].
children
[
0
].
children
&&
!!
that
.
appMenuData
[
0
].
children
[
0
].
children
.
length
)
{
if
(
that
.
appMenuData
[
0
]
&&
!!
that
.
appMenuData
[
0
].
children
&&
!!
that
.
appMenuData
[
0
].
children
.
length
&&
!!
that
.
appMenuData
[
0
].
children
[
0
].
children
&&
!!
that
.
appMenuData
[
0
].
children
[
0
].
children
.
length
)
{
that
.
$router
.
push
(
`
${
that
.
appMenuData
[
0
].
children
[
0
].
children
[
0
].
menuUrl
}
?applicationId=
${
that
.
$route
.
query
.
applicationId
}
`
);
that
.
$router
.
push
(
`
${
that
.
appMenuData
[
0
].
children
[
0
].
children
[
0
].
menuUrl
}
?applicationId=
${
that
.
$route
.
query
.
applicationId
}
`
);
return
false
;
return
false
;
...
...
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