Merge pull request '邓洁: 修改字段' (#226) from dengjie into dev

Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/226
This commit is contained in:
odjbin
2024-01-09 08:34:13 +00:00

View File

@@ -10,16 +10,16 @@
<el-button type="primary" @click="handleClear" style="float: right">清除</el-button> <el-button type="primary" @click="handleClear" style="float: right">清除</el-button>
<div class="socket-box"> <div class="socket-box">
<div v-for="item in dataList" ref="child"> <div v-for="item in dataList" ref="child">
<div v-if="item.typeCmd == 3"> <div v-if="item.cmdType == 3">
<span style="color: #007bff">server send:</span> <span style="color: #007bff">server send:</span>
<div>{{ item.cmd }}</div> <div>{{ item.cmd }}</div>
</div> </div>
<div v-if="item.typeCmd == 4"> <div v-if="item.cmdType == 4">
<span style="color: #28a745"> server receive:</span> <span style="color: #28a745"> server receive:</span>
<div>{{ item.cmd }}</div> <div>{{ item.cmd }}</div>
</div> </div>
<div v-if="item.typeCmd == 1"> <div v-if="item.cmdType == 1">
<span style="color: red">server send:</span> <span style="color: red">server send:</span>
<div>{{ item.cmd }}</div> <div>{{ item.cmd }}</div>
</div> </div>
@@ -66,7 +66,7 @@ let socket = reactive('')
const handleSend = () => { const handleSend = () => {
let data = { let data = {
type: "send", type: "send",
typeCmd: 1, cmdType: 1,
cmd: number.value cmd: number.value
} }
if (number.value === '') return; if (number.value === '') return;