mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 20:08:40 +08:00
fix 已经关闭的标签页,后台仍然在发送请求 #I664OP
This commit is contained in:
parent
2374be13b3
commit
07396ad21e
@ -10,6 +10,8 @@
|
|||||||
2. 【all】节点管理中 `其他功能` 菜单更名为 `脚本管理`
|
2. 【all】节点管理中 `其他功能` 菜单更名为 `脚本管理`
|
||||||
3. 【all】优化版本升级修改管理脚本里变量,采用文件记录方式
|
3. 【all】优化版本升级修改管理脚本里变量,采用文件记录方式
|
||||||
4. 【server】优化容器启动脚本,支持监听进程已经终端重启操作
|
4. 【server】优化容器启动脚本,支持监听进程已经终端重启操作
|
||||||
|
5. 【server】修复 自动刷新页面已经关闭的标签页,后台仍然在发送请求
|
||||||
|
(感谢[@苏生不语](https://gitee.com/sushengbuyu) [Gitee issues I664OP](https://gitee.com/dromara/Jpom/issues/I664OP) )
|
||||||
|
|
||||||
### ❌ 不兼容功能
|
### ❌ 不兼容功能
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/** * 这是新版本的构建列表页面,主要是分离了部分数据到【仓库管理】,以及数据会存储到数据库 */
|
|
||||||
<template>
|
<template>
|
||||||
<div class="full-content">
|
<div class="full-content">
|
||||||
<!-- <div ref="filter" class="filter"></div> -->
|
<!-- <div ref="filter" class="filter"></div> -->
|
||||||
@ -1228,6 +1227,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
silenceLoadData() {
|
silenceLoadData() {
|
||||||
|
if (this.$attrs.routerUrl !== this.$route.path) {
|
||||||
|
// 重新计算倒计时
|
||||||
|
this.countdownTime = Date.now() + this.refreshInterval * 1000;
|
||||||
|
return;
|
||||||
|
}
|
||||||
getBuildList(this.listQuery, false).then((res) => {
|
getBuildList(this.listQuery, false).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.list = res.data.result;
|
this.list = res.data.result;
|
||||||
|
@ -735,6 +735,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 静默
|
// 静默
|
||||||
silenceLoadData() {
|
silenceLoadData() {
|
||||||
|
if (this.$attrs.routerUrl !== this.$route.path) {
|
||||||
|
// 重新计算倒计时
|
||||||
|
this.countdownTime = Date.now() + this.refreshInterval * 1000;
|
||||||
|
return;
|
||||||
|
}
|
||||||
getDishPatchList(this.listQuery, false).then((res) => {
|
getDishPatchList(this.listQuery, false).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.list = res.data.result;
|
this.list = res.data.result;
|
||||||
|
@ -245,6 +245,7 @@ export default {
|
|||||||
deadline: 0,
|
deadline: 0,
|
||||||
temp: {},
|
temp: {},
|
||||||
groupList: [],
|
groupList: [],
|
||||||
|
refreshInterval: 5,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@ -283,7 +284,8 @@ export default {
|
|||||||
nodeCount2 += element;
|
nodeCount2 += element;
|
||||||
});
|
});
|
||||||
this.nodeCount = nodeCount2;
|
this.nodeCount = nodeCount2;
|
||||||
this.deadline = Date.now() + res.data.heartSecond * 1000;
|
this.refreshInterval = res.data.heartSecond;
|
||||||
|
this.deadline = Date.now() + this.refreshInterval * 1000;
|
||||||
//
|
//
|
||||||
// this.openStatusMap = res.data.openStatus;
|
// this.openStatusMap = res.data.openStatus;
|
||||||
}
|
}
|
||||||
@ -291,6 +293,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onFinish() {
|
onFinish() {
|
||||||
|
if (this.$attrs.routerUrl !== this.$route.path) {
|
||||||
|
// 重新计算倒计时
|
||||||
|
this.deadline = Date.now() + this.refreshInterval * 1000;
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -205,7 +205,12 @@ const router = new Router({
|
|||||||
name: "home",
|
name: "home",
|
||||||
component: () => import("../pages/layout"),
|
component: () => import("../pages/layout"),
|
||||||
redirect: "/node/list",
|
redirect: "/node/list",
|
||||||
children: children,
|
children: children.map((item) => {
|
||||||
|
const props = item.props || {};
|
||||||
|
props.routerUrl = item.path;
|
||||||
|
item.props = props;
|
||||||
|
return item;
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/install",
|
path: "/install",
|
||||||
|
Loading…
Reference in New Issue
Block a user