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
47725fea
Commit
47725fea
authored
Nov 13, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 进入管理系统 强制刷新界面调整
parent
e5a6788c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
index.vue
zhmes-agecal-web/src/views/screen/index.vue
+14
-5
No files found.
zhmes-agecal-web/src/views/screen/index.vue
View file @
47725fea
...
...
@@ -128,12 +128,21 @@ export default {
goToAdmin
()
{
// 先跳转到目标页面
this
.
$router
.
push
(
'/index'
).
then
(()
=>
{
// 跳转成功后刷新页面
// 添加时间戳参数,强制从服务器重新加载
const
currentUrl
=
window
.
location
.
href
.
split
(
'?'
)[
0
];
const
newUrl
=
currentUrl
+
'?t='
+
Date
.
now
();
// 获取当前完整路径(包含查询参数)
const
currentUrl
=
window
.
location
.
href
;
const
urlWithoutHash
=
currentUrl
.
split
(
'#'
)[
0
];
// 添加时间戳参数
const
separator
=
urlWithoutHash
.
includes
(
'?'
)
?
'&'
:
'?'
;
const
newUrl
=
urlWithoutHash
+
separator
+
'refresh='
+
Date
.
now
();
// 跳转到新URL
window
.
location
.
href
=
newUrl
;
})
}).
catch
(
err
=>
{
// 如果路由跳转失败,直接刷新当前页
console
.
warn
(
'路由跳转失败,直接刷新:'
,
err
);
window
.
location
.
reload
();
});
},
}
}
...
...
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