| | |
| | | } |
| | | ] |
| | | let socket = null; |
| | | const socketUrl = `ws://${WebSocketHost}:${host}/api/hollowGlass/api/talk/HollowGlass`; |
| | | const socketUrl = `ws://${WebSocketHost}:${host}/api/hollowGlass/api/talk/HollowGlassTwo`; |
| | | const currentPage = ref(parseInt(window.localStorage.getItem('currentPage')) || 1); |
| | | watch(() => currentPage.value, (newVal) => { |
| | | window.localStorage.setItem('currentPage', newVal); |
| | |
| | | }; |
| | | const handleMessage = (data) => { |
| | | try { |
| | | tableDataa.value = data[931][0]; |
| | | tableDataa.value = data.queueInfo[0]; |
| | | const allPageData = data; |
| | | const currentPageKeyValue = currentPageKey.value; |
| | | const currentPageData = allPageData[currentPageKeyValue]; |
| | | if (data.freeTwoRequestEntity != null) { |
| | | freetwo.value = data.freeTwoRequestEntity[0] == true ? 'green' : '#911005'; |
| | | if (data.freeRequest != null) { |
| | | freetwo.value = data.freeRequest[0] == true ? 'green' : '#911005'; |
| | | } |
| | | // if (currentPageData && Array.isArray(currentPageData) && currentPageData.length > 0) { |
| | | // tableDataa.value = currentPageData[0]; |