diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index ed0588ef8..fdf93cfd8 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -173,6 +173,12 @@ - {{ baseInfo.ipV4Addr }} + {{ showSensitiveInfo ? baseInfo.ipV4Addr : '****' }} (true); let isActive = ref(true); let isCurrentActive = ref(true); +const showSensitiveInfo = ref(true); + const ioReadBytes = ref>([]); const ioWriteBytes = ref>([]); const netBytesSents = ref>([]); @@ -510,6 +518,10 @@ const showSimpleNode = () => { return globalStore.isMasterProductPro && simpleNodes.value?.length !== 0; }; +const toggleSensitiveInfo = () => { + showSensitiveInfo.value = !showSensitiveInfo.value; +}; + const jumpPanel = (row: any) => { let entrance = row.securityEntrance.startsWith('/') ? row.securityEntrance.slice(1) : row.securityEntrance; entrance = entrance ? '/' + entrance : '';