提交 2c707e92 authored 作者: 周文艺's avatar 周文艺

最新更改定时器时间

上级 c9eab9a8
...@@ -126,6 +126,7 @@ import { ref, onMounted, onUnmounted, computed, watch, nextTick } from 'vue'; ...@@ -126,6 +126,7 @@ import { ref, onMounted, onUnmounted, computed, watch, nextTick } from 'vue';
import wss from '@/utils/requestSocekt.js' import wss from '@/utils/requestSocekt.js'
import useAppStore from '@/store/module/app' import useAppStore from '@/store/module/app'
import { fa } from 'element-plus/es/locales.mjs'; import { fa } from 'element-plus/es/locales.mjs';
import { set } from 'nprogress';
// import { loading } from 'vxe-pc-ui'; // import { loading } from 'vxe-pc-ui';
const useAppStoreInstance = useAppStore(); const useAppStoreInstance = useAppStore();
...@@ -240,6 +241,16 @@ const wssMessageHandle = () => { ...@@ -240,6 +241,16 @@ const wssMessageHandle = () => {
clientType: "web" clientType: "web"
}) })
// setTimeout(() => {
// wssOpenHandle({
// type: "confirm",
// taskCode: String(taskCode_everyChange.value),
// clientType: "ue"
// })
// }, 2000);
// console.log('setTimeout:', (1000*60)/playbackSpeed.value,playbackSpeed.value); // console.log('setTimeout:', (1000*60)/playbackSpeed.value,playbackSpeed.value);
...@@ -1053,7 +1064,6 @@ const updateTimeline = () => { ...@@ -1053,7 +1064,6 @@ const updateTimeline = () => {
onMounted(() => { onMounted(() => {
// if (isFromTosub) { // if (isFromTosub) {
// handleDateRangeChange(useAppStoreInstance.globalSubsystemSelectedStartTime); // handleDateRangeChange(useAppStoreInstance.globalSubsystemSelectedStartTime);
// jumpToSpecificTime(new Date(useAppStoreInstance.globalTimeLineEndSelectTime),true) // jumpToSpecificTime(new Date(useAppStoreInstance.globalTimeLineEndSelectTime),true)
// endDrag() // endDrag()
// } // }
......
...@@ -828,7 +828,7 @@ onUnmounted(() => { ...@@ -828,7 +828,7 @@ onUnmounted(() => {
if (messageHandler.value) { if (messageHandler.value) {
console.log("移除socket的链接"); console.log("移除socket的链接");
wss.removeEventListener('message', messageHandler.value); // wss.removeEventListener('message', messageHandler.value);
} }
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Z 1518051043@qq.com * @Author: Z 1518051043@qq.com
* @Date: 2025-12-01 13:52:20 * @Date: 2025-12-01 13:52:20
* @LastEditors: zwy 1518051043@qq.com * @LastEditors: zwy 1518051043@qq.com
* @LastEditTime: 2025-12-31 15:46:20 * @LastEditTime: 2026-01-05 15:11:06
* @FilePath: \yuanxinPro\src\utils\requestSocekt.js * @FilePath: \yuanxinPro\src\utils\requestSocekt.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -12,13 +12,13 @@ const apiUrl = `ws://121.229.107.155:19021/TestTimeSend` ...@@ -12,13 +12,13 @@ const apiUrl = `ws://121.229.107.155:19021/TestTimeSend`
const wss = new WebSocket(apiUrl); const wss = new WebSocket(apiUrl);
wss.onopen = () => { wss.onopen = () => {
}; };
wss.onclose = () => { // wss.onclose = () => {
clearInterval(HeartbeatInterval); // clearInterval(HeartbeatInterval);
console.log('WebSocket disconnected, attempting reconnect...'); // console.log('WebSocket disconnected, attempting reconnect...');
setTimeout(() => { // setTimeout(() => {
// 自动重连逻辑 // // 自动重连逻辑
new WebSocket(apiUrl); // new WebSocket(apiUrl);
}, 5000); // }, 5000);
}; // };
export default wss; export default wss;
/* /*
* @Author: Z 1518051043@qq.com * @Author: Z 1518051043@qq.com
* @Date: 2025-12-01 13:52:20 * @Date: 2025-12-01 13:52:20
* @LastEditors: Z 1518051043@qq.com * @LastEditors: zwy 1518051043@qq.com
* @LastEditTime: 2025-12-25 13:47:19 * @LastEditTime: 2026-01-05 15:11:15
* @FilePath: \yuanxinPro\src\utils\requestSocekt.js * @FilePath: \yuanxinPro\src\utils\requestSocekt.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -12,13 +12,13 @@ const useAppStoreInstance = useAppStore() ...@@ -12,13 +12,13 @@ const useAppStoreInstance = useAppStore()
const apiUrl = `ws://121.229.107.155:19021/systemData` const apiUrl = `ws://121.229.107.155:19021/systemData`
const wss = new WebSocket(apiUrl); const wss = new WebSocket(apiUrl);
useAppStoreInstance.setSubsystemSocket(wss) useAppStoreInstance.setSubsystemSocket(wss)
wss.onclose = () => { // wss.onclose = () => {
clearInterval(ueHeartbeatInterval); // clearInterval(ueHeartbeatInterval);
console.log('WebSocket disconnected, attempting reconnect...'); // console.log('WebSocket disconnected, attempting reconnect...');
setTimeout(() => { // setTimeout(() => {
// 自动重连逻辑 // // 自动重连逻辑
new WebSocket(apiUrl); // new WebSocket(apiUrl);
}, 5000); // }, 5000);
}; // };
export default wss; export default wss;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论