| | |
| | | } |
| | | |
| | | if (debug) { |
| | | ip1 = 'http://192.168.0.103:8084/'; |
| | | // ip1 = 'http://localhost:8084/'; |
| | | ws = `192.168.0.103:9031`; |
| | | // ws = `localhost:9031`; |
| | | // ip1 = 'http://192.168.0.103:8084/'; |
| | | ip1 = 'http://localhost:8084/'; |
| | | // ws = `192.168.0.103:9031`; |
| | | ws = `localhost:9031`; |
| | | } |
| | | |
| | | const $http = axios.create({ |
| | |
| | | ElFormItem: typeof import('element-plus/es')['ElFormItem'] |
| | | ElIcon: typeof import('element-plus/es')['ElIcon'] |
| | | ElInput: typeof import('element-plus/es')['ElInput'] |
| | | ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] |
| | | ElLink: typeof import('element-plus/es')['ElLink'] |
| | | ElOption: typeof import('element-plus/es')['ElOption'] |
| | | ElPagination: typeof import('element-plus/es')['ElPagination'] |
| | |
| | | function dealMsg(data) { |
| | | const { type, content } = websocketMsgParser.parseMsg(data); |
| | | const obj = reactive(JSON.parse(content)); |
| | | if (obj.deviceCode == props.deviceCode) { |
| | | if (obj[0].deviceCode == props.deviceCode) { |
| | | obj._type = type; |
| | | dealObj(obj); |
| | | } |