| | |
| | | import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance } from "vue"; |
| | | import request from "@/utils/request" |
| | | import requestErp from "@/utils/requestErp" |
| | | import { host, WebSocketHost } from '@/utils/constants' |
| | | import { closeWebSocket, initializeWebSocket } from '@/utils/WebSocketService' |
| | | import PrintCustomLabelXJ from './PrintCustomLabelTwo.vue' |
| | | import { useI18n } from 'vue-i18n' |
| | |
| | | // }) |
| | | |
| | | let socket = null; |
| | | const socketUrl = `ws://${WebSocketHost}:${host}/api/hollowGlass/api/talk/HollowGlassTwo`; |
| | | const socketUrl = `ws://${window.ipConfig.serverUrl}/api/hollowGlass/api/talk/HollowGlassTwo`; |
| | | const currentPage = ref(parseInt(window.localStorage.getItem('currentPage')) || 1); |
| | | watch(() => currentPage.value, (newVal) => { |
| | | window.localStorage.setItem('currentPage', newVal); |