Commit d6188db0a3eaa9bef1ed05bb66efb306fdc8e804

Authored by fengtao
1 parent 8cbf2294

fix:修复设备列表TBox问题

@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 </template> 20 </template>
21 21
22 <script setup lang="ts"> 22 <script setup lang="ts">
23 - import { ref, nextTick, onMounted } from 'vue'; 23 + import { ref, nextTick } from 'vue';
24 import { BasicTable, useTable, BasicColumn } from '/@/components/Table'; 24 import { BasicTable, useTable, BasicColumn } from '/@/components/Table';
25 import { Switch } from 'ant-design-vue'; 25 import { Switch } from 'ant-design-vue';
26 import { h } from 'vue'; 26 import { h } from 'vue';
@@ -76,13 +76,6 @@ @@ -76,13 +76,6 @@
76 const remotePort = ref(0); 76 const remotePort = ref(0);
77 const address = ref(''); 77 const address = ref('');
78 const enableRemoteDisabled = ref(false); 78 const enableRemoteDisabled = ref(false);
79 - onMounted(() => {  
80 - tableData.value.push({  
81 - enableRemote: '',  
82 - proxyName: props.deviceDetail.sn,  
83 - status: '',  
84 - });  
85 - });  
86 const getTableData = async () => { 79 const getTableData = async () => {
87 const res = await frpGetInfoApi(props.deviceDetail.sn); 80 const res = await frpGetInfoApi(props.deviceDetail.sn);
88 enableRemote.value = res.enableRemote; 81 enableRemote.value = res.enableRemote;
@@ -105,7 +98,7 @@ @@ -105,7 +98,7 @@
105 } 98 }
106 tableData.value.push({ 99 tableData.value.push({
107 enableRemote: res.enableRemote, 100 enableRemote: res.enableRemote,
108 - proxyName: res.proxyName, 101 + proxyName: res.proxyName || props.deviceDetail.sn,
109 status: res.status, 102 status: res.status,
110 }); 103 });
111 if (res == '') { 104 if (res == '') {