Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5538a7b6
authored
Jan 12, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 菜单路径参数判断修改
1 parent
e52b0c3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/store/modules/auth.js
src/store/modules/auth.js
View file @
5538a7b
...
@@ -105,14 +105,14 @@ function handleSpecialMenuFilter(menus, merchant) {
...
@@ -105,14 +105,14 @@ function handleSpecialMenuFilter(menus, merchant) {
}
}
return
null
return
null
}
}
const
target
=
findByLabel
(
filteredMenus
,
'客户
运营
'
)
const
target
=
findByLabel
(
filteredMenus
,
'客户'
)
if
(
target
)
{
if
(
target
)
{
target
.
children
=
Array
.
isArray
(
target
.
children
)
?
target
.
children
:
[]
target
.
children
=
Array
.
isArray
(
target
.
children
)
?
target
.
children
:
[]
const
exists
=
target
.
children
.
some
(
child
=>
child
?.
label
===
'神策-
行为分析'
)
// const exists = target.children.some(child => child?.label === '
行为分析')
if
(
!
exists
)
{
//
if (!exists) {
const
scMenu
=
{
const
scMenu
=
{
id
:
2981
,
id
:
2981
,
label
:
'神策-
行为分析'
,
label
:
'
行为分析'
,
value
:
null
,
value
:
null
,
logo
:
null
,
logo
:
null
,
disabled
:
null
,
disabled
:
null
,
...
@@ -164,7 +164,7 @@ function handleSpecialMenuFilter(menus, merchant) {
...
@@ -164,7 +164,7 @@ function handleSpecialMenuFilter(menus, merchant) {
]
]
}
}
target
.
children
.
push
(
scMenu
)
target
.
children
.
push
(
scMenu
)
}
//
}
}
}
return
filteredMenus
return
filteredMenus
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment