fix: 修复系统工具切换时 清空终端信息

This commit is contained in:
feng626 2022-08-11 16:11:39 +08:00 committed by Jiangjie.Bai
parent 2f80b66b07
commit b3670fe528

View File

@ -4,7 +4,7 @@
<div> <div>
<el-form ref="testForm" label-width="20%" :model="testData" :rules="testRules"> <el-form ref="testForm" label-width="20%" :model="testData" :rules="testRules">
<el-form-item :label="$t('setting.basicTools')"> <el-form-item :label="$t('setting.basicTools')">
<el-radio-group v-model="testData.tool_type"> <el-radio-group v-model="testData.tool_type" @change="changeToolType">
<el-radio v-for="t in tools" :key="t" :label="t" /> <el-radio v-for="t in tools" :key="t" :label="t" />
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -55,6 +55,9 @@ export default {
} }
}, },
methods: { methods: {
changeToolType() {
this.testResp = ''
},
enableWS() { enableWS() {
this.testResp = '' this.testResp = ''
const scheme = document.location.protocol === 'https:' ? 'wss' : 'ws' const scheme = document.location.protocol === 'https:' ? 'wss' : 'ws'