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
1cbd7fc6
authored
2025-02-17 13:16:32 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into release-test
2 parents
25364613
ce1a4de5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
src/api/modules/queryService.ts
src/store/modules/user.ts
src/api/modules/queryService.ts
View file @
1cbd7fc
...
...
@@ -25,10 +25,17 @@ export const refreshToken = (params) => {
})
}
export
const
getSystemMenu
=
(
params
)
=>
{
/** 获取登录人员的菜单 */
export
const
getSystemMenu
=
(
params
,
isAdmin
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
tenant
/
get
-
product
-
menu
?
tenantGuid
=
$
{
params
.
tenantGuid
}
&
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`,
url
:
isAdmin
==
"Y"
?
`
${
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
tenant
/
get
-
product
-
menu
?
tenantGuid
=
$
{
params
.
tenantGuid
}
&
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`
: `
$
{
import
.
meta
.
env
.
VITE_APP_AUTH_URL
}
/product-menu-permission/
staff
/
get
-
product
-
menu
-
template
?
platformSystemGuid
=
32774
fcfdf5e43e8b866660374d8bced
`,
method: "get",
});
};
...
...
src/store/modules/user.ts
View file @
1cbd7fc
...
...
@@ -61,7 +61,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
}).
then
((
info
:
any
)
=>
{
//解决页面调用流程接口传递staffGuid,为空的问题
return
getSystemMenu
({
tenantGuid
:
currentTenantGuid
.
value
}
,
res
.
data
?.
isAdmin
).
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