Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘照晖
DC-TOM
Commits
8ec91a09
Commit
8ec91a09
authored
Jul 04, 2025
by
Cai Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(*): 跳转及样式问题处理
parent
0aed5fca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
index.vue
src/layout/index.vue
+1
-1
index.js
src/request/index.js
+16
-1
style.css
src/style.css
+1
-1
index.vue
src/views/intermediate/index.vue
+2
-2
No files found.
src/layout/index.vue
View file @
8ec91a09
...
...
@@ -283,7 +283,7 @@ export default {
</
style
>
<
style
>
.el-breadcrumb__inner
{
color
:
#
000
;
color
:
#
848383
!important
;
font-weight
:
600
;
}
...
...
src/request/index.js
View file @
8ec91a09
...
...
@@ -6,6 +6,8 @@ import { getToken, clearAllCookies, removeToken } from "@/utils/auth";
const
ENV
=
import
.
meta
.
env
const
requestObj
=
{};
// 添加一个标志位,用于记录是否已经显示了登录过期的消息
let
isLoginExpiredMessageShown
=
false
;
const
source
=
axios
.
CancelToken
.
source
()
const
service
=
axios
.
create
({
...
...
@@ -65,7 +67,20 @@ service.interceptors.response.use(
if
(
res
.
code
!==
1
)
{
if
(
res
.
code
===
1001
)
{
removeToken
(
"dataBranchFactoryId"
);
// router.push(`login`);
// 检查是否已经显示过登录过期的消息
if
(
!
isLoginExpiredMessageShown
)
{
ElMessage
({
message
:
"登录已过期,请重新登录"
,
type
:
"error"
,
duration
:
2
*
1000
});
isLoginExpiredMessageShown
=
true
;
// 设置一个定时器,在一段时间后重置标志位,以便下次可以再次显示
setTimeout
(()
=>
{
isLoginExpiredMessageShown
=
false
;
},
3000
);
}
router
.
push
(
`login`
);
}
else
{
if
(
!
res
.
success
)
{
if
(
res
.
code
===
9000
)
{
...
...
src/style.css
View file @
8ec91a09
...
...
@@ -96,7 +96,7 @@ select:-webkit-autofill {
.el-breadcrumb__item
:last-child
.el-breadcrumb__inner
{
color
:
#ccc
!important
;
padding-left
:
16
px
;
padding-left
:
4
px
;
}
.el-progress-bar__outer
{
...
...
src/views/intermediate/index.vue
View file @
8ec91a09
...
...
@@ -18,8 +18,8 @@ const router = useRouter();
const
iframeRef
=
ref
(
null
);
const
url
=
`http://172.16.20.227/admin/ecoTom/#/robotNew?token=
${
getToken
(
"TOKEN"
)}
`
// const url = `https://screen.bmetech.com/steelmakingScreen/#/robotNew?token=${getToken("TOKEN")}
`
//
const url = `http://172.16.20.227/admin/ecoTom/#/robotNew?token=${getToken("TOKEN")}`
const
url
=
`https://screen.bmetech.com/steelmakingScreen/#/robotNew
`
...
...
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