fix: 优化license页面

This commit is contained in:
xieyonghong 2023-05-08 18:00:16 +08:00
parent 16960ea287
commit 07c249fdf4
1 changed files with 4 additions and 12 deletions

View File

@ -5,9 +5,9 @@
<div> <div>
<j-descriptions bordered :column="4"> <j-descriptions bordered :column="4">
<j-descriptions-item label="Host" :span="4"> <j-descriptions-item label="Host" :span="4">
{{ info?.host }} {{ infoData?.host }}
</j-descriptions-item> </j-descriptions-item>
<template v-for="i in info?.modules" :key="i"> <template v-for="i in infoData?.modules" :key="i">
<j-descriptions-item label="IP" :span="2"> <j-descriptions-item label="IP" :span="2">
{{ i.ip }} {{ i.ip }}
</j-descriptions-item> </j-descriptions-item>
@ -43,7 +43,7 @@
<script lang="ts" setup> <script lang="ts" setup>
const props = defineProps({ const props = defineProps({
data: { infoData: {
type: Object, type: Object,
default: {}, default: {},
}, },
@ -52,16 +52,8 @@ const props = defineProps({
default: '', default: '',
}, },
}); });
let info = ref();
let license = ref(); let license = ref();
watch(
() => {
props.data;
},
() => {
info.value = props.data;
},
);
watch( watch(
() => props.licenseData, () => props.licenseData,
() => { () => {