Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
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
耿迪迪
zhmes-agecal
Commits
2155d4e9
Commit
2155d4e9
authored
Nov 13, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 进入管理系统 强制刷新界面调整
parent
55e4aaa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
index.vue
zhmes-agecal-web/src/views/screen/index.vue
+11
-15
No files found.
zhmes-agecal-web/src/views/screen/index.vue
View file @
2155d4e9
<
template
>
<dv-full-screen-container
class=
"screen-container"
>
<dv-full-screen-container
v-if=
"!isRedirecting"
class=
"screen-container"
>
<!-- 管理系统入口按钮 -->
<div
@
click=
"goToAdmin"
class=
"management-entry"
style=
"width:100px;height:30px;"
>
进入管理系统
</div>
<!-- 顶部导航栏 -->
...
...
@@ -90,7 +90,8 @@ export default {
{
icon
:
'🔍'
,
text
:
'老化层详情'
,
component
:
'AgingLayer'
},
// 新增菜单项,
{
icon
:
'🔍'
,
text
:
'托盘与设备绑定'
,
component
:
'TrayBinding'
}
// 新增菜单项
],
modbusDeviceData
:
null
// 存储传递的柜子ID
modbusDeviceData
:
null
,
// 存储传递的柜子ID
isRedirecting
:
false
}
},
...
...
@@ -126,19 +127,14 @@ export default {
this
.
selectedMenu
=
index
;
},
goToAdmin
()
{
// 更可靠的刷新方法
this
.
$router
.
push
(
'/index'
).
then
(()
=>
{
// 确保完全刷新,避免任何缓存
const
url
=
new
URL
(
window
.
location
.
href
);
url
.
searchParams
.
set
(
'_t'
,
Date
.
now
());
url
.
searchParams
.
set
(
'_r'
,
Math
.
random
().
toString
(
36
).
substr
(
2
));
// 使用replace而不是href跳转,避免历史记录问题
window
.
location
.
replace
(
url
.
toString
());
}).
catch
(()
=>
{
// 备用方案
window
.
location
.
href
=
'/index?_t='
+
Date
.
now
();
});
this
.
isRedirecting
=
true
;
setTimeout
(()
=>
{
this
.
$router
.
push
(
'/index'
).
then
(()
=>
{
window
.
location
.
href
=
window
.
location
.
origin
+
'/index?_t='
+
Date
.
now
();
});
},
100
);
},
}
}
...
...
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