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
6a969766
authored
2025-12-09 14:21:02 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复登录进去选择菜单问题
1 parent
2d4c7613
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/[...all].vue
src/views/[...all].vue
View file @
6a96976
...
...
@@ -47,7 +47,7 @@ const beforeLogin = () => {
userStore
.
getTokenPromise
.
then
(()
=>
{
let
userData
=
JSON
.
parse
(
userStore
.
userData
);
superTubeFlag
.
value
=
userData
.
superTubeFlag
;
selectRole
.
value
=
userData
.
superTubeFlag
==
'Y'
?
USERROLE
.
OPERATION
:
USERROLE
.
USE
;
//
selectRole.value = userData.superTubeFlag == 'Y' ? USERROLE.OPERATION : USERROLE.USE;
userStore
.
getUserSystemMenuByRole
(
selectRole
.
value
).
then
((
res
)
=>
{
loading
.
value
=
false
;
if
(
res
&&
res
!==
false
)
{
...
...
@@ -66,7 +66,7 @@ const beforeLogin = () => {
}
else
{
let
userData
=
JSON
.
parse
(
userStore
.
userData
);
superTubeFlag
.
value
=
userData
.
superTubeFlag
;
selectRole
.
value
=
userData
.
superTubeFlag
==
'Y'
?
USERROLE
.
OPERATION
:
USERROLE
.
USE
;
//
selectRole.value = userData.superTubeFlag == 'Y' ? USERROLE.OPERATION : USERROLE.USE;
userStore
.
getUserSystemMenuByRole
(
selectRole
.
value
).
then
((
res
)
=>
{
loading
.
value
=
false
;
if
(
res
&&
res
!==
false
)
{
...
...
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