Showing
1 changed file
with
8 additions
and
1 deletions
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | </template> |
21 | 21 | |
22 | 22 | <script setup lang="ts"> |
23 | - import { ref, nextTick } from 'vue'; | |
23 | + import { ref, nextTick, onMounted } from 'vue'; | |
24 | 24 | import { BasicTable, useTable, BasicColumn } from '/@/components/Table'; |
25 | 25 | import { Switch } from 'ant-design-vue'; |
26 | 26 | import { h } from 'vue'; |
... | ... | @@ -76,6 +76,13 @@ |
76 | 76 | const remotePort = ref(0); |
77 | 77 | const address = ref(''); |
78 | 78 | const enableRemoteDisabled = ref(false); |
79 | + onMounted(() => { | |
80 | + tableData.value.push({ | |
81 | + enableRemote: '', | |
82 | + proxyName: props.deviceDetail.sn, | |
83 | + status: '', | |
84 | + }); | |
85 | + }); | |
79 | 86 | const getTableData = async () => { |
80 | 87 | const res = await frpGetInfoApi(props.deviceDetail.sn); |
81 | 88 | enableRemote.value = res.enableRemote; | ... | ... |