Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
83918faf
Commit
83918faf
authored
May 26, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改菜单结构showFather问题
parent
eabb927d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
permission.js
src/store/modules/permission.js
+2
-0
login.vue
src/views/login/login.vue
+1
-1
No files found.
src/store/modules/permission.js
View file @
83918faf
...
@@ -22,6 +22,8 @@ const permission = {
...
@@ -22,6 +22,8 @@ const permission = {
getInfo
().
then
(
res
=>
{
getInfo
().
then
(
res
=>
{
const
accessedRoutes
=
filterAsyncRouter
(
res
.
data
.
menus
[
0
].
children
)
const
accessedRoutes
=
filterAsyncRouter
(
res
.
data
.
menus
[
0
].
children
)
console
.
log
(
'进来了'
,
accessedRoutes
)
console
.
log
(
'进来了'
,
accessedRoutes
)
// 获取菜单结构后把首页的showFather改为false从而达到不显示首页目录的效果
res
.
data
.
menus
[
0
].
children
[
0
].
showFather
=
'false'
if
(
accessedRoutes
[
0
])
{
if
(
accessedRoutes
[
0
])
{
const
firstChild
=
getFirstChild
(
accessedRoutes
[
0
])
const
firstChild
=
getFirstChild
(
accessedRoutes
[
0
])
accessedRoutes
.
push
({
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
})
accessedRoutes
.
push
({
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
})
...
...
src/views/login/login.vue
View file @
83918faf
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
// this.$router.push({ path: `http://main.court.com${this.redirect || "/"}` });
// this.$router.push({ path: `http://main.court.com${this.redirect || "/"}` });
this
.
loading
=
false
this
.
loading
=
false
// this.$router.push('/welcome')
// this.$router.push('/welcome')
this
.
$router
.
push
(
'/
homePage/index
'
)
this
.
$router
.
push
(
'/
Home
'
)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
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