Browse Source

修改tcp连接ip地址;

maziyang/feature-20251025172218-智能客服中台
宋杰 4 weeks ago
parent
commit
525f6e972e
  1. 2
      api/tcpConnection.js
  2. 12
      pages/home/home.vue

2
api/tcpConnection.js

@ -11,7 +11,7 @@
// TCP连接配置 // TCP连接配置
const TCP_CONFIG = { const TCP_CONFIG = {
ip: "192.168.1.9",
ip: "39.102.136.61:8088",
port: "8080", port: "8080",
channel: "1", // 可选 1~20 channel: "1", // 可选 1~20
charsetname: "UTF-8", // 默认UTF-8,可选GBK charsetname: "UTF-8", // 默认UTF-8,可选GBK

12
pages/home/home.vue

@ -396,7 +396,7 @@ export default {
if (this.tcpConnected) { if (this.tcpConnected) {
console.log('页面销毁,自动关闭主TCP连接') console.log('页面销毁,自动关闭主TCP连接')
tcpConnection.disconnect({ tcpConnection.disconnect({
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '1', channel: '1',
charsetname: 'UTF-8' charsetname: 'UTF-8'
@ -408,7 +408,7 @@ export default {
if (this.myStocksTcpConnected) { if (this.myStocksTcpConnected) {
console.log('页面销毁,自动关闭我的自选TCP连接') console.log('页面销毁,自动关闭我的自选TCP连接')
tcpConnection.disconnect({ tcpConnection.disconnect({
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '2', channel: '2',
charsetname: 'UTF-8' charsetname: 'UTF-8'
@ -779,7 +779,7 @@ export default {
// console.log('TCP...') // console.log('TCP...')
tcpConnection.connect( tcpConnection.connect(
{ {
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '1', // 1~20 channel: '1', // 1~20
charsetname: 'UTF-8' // UTF-8GBK charsetname: 'UTF-8' // UTF-8GBK
@ -792,7 +792,7 @@ export default {
// console.log('TCP...') // console.log('TCP...')
tcpConnection.disconnect( tcpConnection.disconnect(
{ {
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '1', // 1~20 channel: '1', // 1~20
charsetname: 'UTF-8' // UTF-8GBK charsetname: 'UTF-8' // UTF-8GBK
@ -824,7 +824,7 @@ export default {
console.log('执行我的自选TCP连接...') console.log('执行我的自选TCP连接...')
tcpConnection.connect( tcpConnection.connect(
{ {
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '2', // 使channel 2 channel: '2', // 使channel 2
charsetname: 'UTF-8' // UTF-8GBK charsetname: 'UTF-8' // UTF-8GBK
@ -837,7 +837,7 @@ export default {
console.log('断开我的自选TCP连接...') console.log('断开我的自选TCP连接...')
tcpConnection.disconnect( tcpConnection.disconnect(
{ {
ip: '192.168.1.9',
ip: '39.102.136.61:8088',
port: '8080', port: '8080',
channel: '2', // 使channel 2 channel: '2', // 使channel 2
charsetname: 'UTF-8' // UTF-8GBK charsetname: 'UTF-8' // UTF-8GBK

Loading…
Cancel
Save