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
71b6a3a8
authored
2025-02-24 17:33:20 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
a6fe3478
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
.env.development
src/router/index.ts
src/store/modules/user.ts
.env.development
View file @
71b6a3a
...
...
@@ -8,6 +8,8 @@ VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/
VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin
VITE_IDASS_BASEURL = https://idaas-test.csbr.cn/login
# 平台用户 接口请地址
VITE_APP_USER_API_BASEURL = gateway-server
...
...
src/router/index.ts
View file @
71b6a3a
...
...
@@ -42,7 +42,7 @@ router.beforeEach(async (to, from, next) => {
// name: 'login',
// replace: true,
// })
window
.
location
.
href
=
userStore
.
idassLoginUrl
;
window
.
location
.
href
=
import
.
meta
.
env
.
VITE_IDASS_BASEURL
;
}
else
if
(
to
.
name
==
'scenes'
)
{
next
({
...
...
@@ -131,7 +131,7 @@ router.beforeEach(async (to, from, next) => {
next
()
}
else
if
(
!
to
.
query
.
code
&&
to
.
name
!==
'login'
)
{
window
.
location
.
href
=
userStore
.
idassLoginUrl
;
window
.
location
.
href
=
import
.
meta
.
env
.
VITE_IDASS_BASEURL
;
// next({
// name: 'login',
// query: {
...
...
src/store/modules/user.ts
View file @
71b6a3a
...
...
@@ -176,7 +176,7 @@ const useUserStore = defineStore(
menuStore
.
setActived
(
0
)
tabbar
.
value
=
[]
tabbarMap
.
value
=
{}
window
.
location
.
href
=
idassLoginUrl
.
value
+
'?logout=1'
;
window
.
location
.
href
=
idassLoginUrl
+
'?logout=1'
;
});
}
else
{
let
hasCode
=
localStorage
.
getItem
(
'code'
);
...
...
@@ -195,7 +195,7 @@ const useUserStore = defineStore(
tabbar
.
value
=
[]
tabbarMap
.
value
=
{}
if
(
hasCode
)
{
window
.
location
.
href
=
idassLoginUrl
.
value
+
'?logout=1'
;
window
.
location
.
href
=
idassLoginUrl
+
'?logout=1'
;
}
else
{
router
.
push
({
name
:
'login'
,
...
...
@@ -313,7 +313,6 @@ const useUserStore = defineStore(
permissions
,
isLogin
,
isLoginOut
,
idassLoginUrl
,
getTokenPromise
,
getToken
,
login
,
...
...
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