🎈 perf: ts type

This commit is contained in:
m1m1sha
2024-05-08 18:58:17 +08:00
parent c3df9ea7fa
commit da0777293f
4 changed files with 105 additions and 20 deletions

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import type { NodeInfo } from '~/types/network'
const props = defineProps<{
instanceId?: string
}>()
@@ -92,7 +94,7 @@ function lossRate(info: any) {
const myNodeInfo = computed(() => {
if (!curNetworkInst.value)
return {}
return {} as NodeInfo
return curNetworkInst.value.detail?.my_node_info
})
@@ -233,7 +235,7 @@ onUnmounted(() => {
})
const dialogVisible = ref(false)
const dialogContent = ref('')
const dialogContent = ref<any>('')
function showVpnPortalConfig() {
const my_node_info = myNodeInfo.value