# pppp **Repository Path**: njjames/pppp ## Basic Information - **Project Name**: pppp - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-15 - **Last Updated**: 2024-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README let failCnt = 0 window.hinnn.event.on('connect_error', () => { failCnt++ console.log('connect_error', failCnt) if (failCnt >= 5) { this.$message.error('连接失败!!!') } }) window.hinnn.event.on('success', () => { console.log('success') }) window.hinnn.event.on('printerList', (e) => { console.log('printerList', e) }) window.hiwebSocket.setHost('http://localhost:17521', (a, b) => { console.log('xxxxxx', a, b) if (a) { console.log('zzzz', window.hiwebSocket.opened) this.$message.success('连接成功') // window.hiwebSocket.refreshPrinterList() } }) // 客户端打印 老是打印loading页面 // 解决办法:href需要加上<%= BASE_URL %> `` el-dialog总是显示在右边,是因为width没有指定正确,字符串要加px