Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
70e80a41
authored
2025-02-18 17:15:32 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改获取菜单时判断管理员的条件
1 parent
f8ac5ee4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/api/modules/queryService.ts
src/store/modules/user.ts
src/api/modules/queryService.ts
View file @
70e80a4
...
...
@@ -26,10 +26,10 @@ export const refreshToken = (params) => {
}
/** 获取登录人员的菜单 */
export
const
getSystemMenu
=
(
params
,
isAdmin
)
=>
{
export
const
getSystemMenu
=
(
params
,
isAdmin
=
false
)
=>
{
return
request
({
url
:
isAdmin
==
"Y"
isAdmin
?
`
${
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
tenant
/
get
-
product
-
menu
?
tenantGuid
=
$
{
params
.
tenantGuid
}
&
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`
...
...
src/store/modules/user.ts
View file @
70e80a4
...
...
@@ -60,7 +60,7 @@ const useUserStore = defineStore(
userName
.
value
=
res
.
data
.
staffName
;
localStorage
.
setItem
(
'userName'
,
res
.
data
?.
staffName
);
localStorage
.
setItem
(
'userData'
,
JSON
.
stringify
(
res
.
data
));
return
getSystemMenu
({
tenantGuid
:
currentTenantGuid
.
value
},
res
.
data
?.
isAdmin
).
then
((
info
:
any
)
=>
{
//解决页面调用流程接口传递staffGuid,为空的问题
return
getSystemMenu
({
tenantGuid
:
currentTenantGuid
.
value
},
res
.
data
?.
isAdmin
==
'Y'
&&
res
.
data
?.
superTubeFlag
==
'Y'
).
then
((
info
:
any
)
=>
{
//解决页面调用流程接口传递staffGuid,为空的问题
if
(
info
.
code
==
'00000'
)
{
localStorage
.
setItem
(
'userInfoData'
,
JSON
.
stringify
(
info
.
data
));
userInfoData
.
value
=
info
.
data
;
...
...
Write
Preview
Styling with
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