Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
suidao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
suidao
Commits
57c094c4
Commit
57c094c4
authored
Mar 03, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 登录超时 跳转登录页面华远大屏
parent
69c832b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
request.js
src/utils/request.js
+2
-1
request2.js
src/utils/request2.js
+2
-1
index.vue
src/views/index.vue
+1
-1
No files found.
src/utils/request.js
View file @
57c094c4
...
@@ -82,7 +82,8 @@ service.interceptors.response.use(res => {
...
@@ -82,7 +82,8 @@ service.interceptors.response.use(res => {
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
isRelogin
.
show
=
false
;
isRelogin
.
show
=
false
;
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
href
=
'
/index
'
;
// location.href = '/index';
location
.
href
=
'
http://yj.hylgzl.com/login
'
;
})
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
isRelogin
.
show
=
false
;
isRelogin
.
show
=
false
;
...
...
src/utils/request2.js
View file @
57c094c4
...
@@ -82,7 +82,8 @@ service.interceptors.response.use(res => {
...
@@ -82,7 +82,8 @@ service.interceptors.response.use(res => {
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
isRelogin
.
show
=
false
;
isRelogin
.
show
=
false
;
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
href
=
'
/index
'
;
// location.href = '/index';
location
.
href
=
'
http://yj.hylgzl.com/login
'
;
// 山西华远大屏
})
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
isRelogin
.
show
=
false
;
isRelogin
.
show
=
false
;
...
...
src/views/index.vue
View file @
57c094c4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<p
class=
"cont"
>
隧道名称:隧道结构系统
</p>
<p
class=
"cont"
>
隧道名称:隧道结构系统
</p>
<p
class=
"cont"
>
隧道工程安全等级:高级
</p>
<p
class=
"cont"
>
隧道工程安全等级:高级
</p>
<p
class=
"cont"
>
隧道危害等级:低级
</p>
<p
class=
"cont"
>
隧道危害等级:低级
</p>
<
p
class=
"cont"
>
边皮设计稳定系数:高
</p
>
<
!--
<p
class=
"cont"
>
边皮设计稳定系数:高
</p>
--
>
<p
class=
"cont"
>
项目概况:
</p>
<p
class=
"cont"
>
项目概况:
</p>
</div>
</div>
<div
class=
"home-right-bottom"
>
<div
class=
"home-right-bottom"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment