diff --git a/src/components/Operator.vue b/src/components/Operator.vue index f26fc2a..36c327d 100644 --- a/src/components/Operator.vue +++ b/src/components/Operator.vue @@ -419,6 +419,7 @@ @@ -520,6 +521,10 @@ onMounted(() => { webSocketStore.sendCommandMsg(getStateJSON) }, 1000) }) + +const hiddenLogVisible = () => { + logVisible.value = false +} onUnmounted(() => { timer.value = null }) diff --git a/src/components/dialogs/LogPicker.vue b/src/components/dialogs/LogPicker.vue index 65b34db..ae0e72e 100644 --- a/src/components/dialogs/LogPicker.vue +++ b/src/components/dialogs/LogPicker.vue @@ -12,6 +12,25 @@ />
确定
+ + + + + @@ -25,6 +44,9 @@ const props = defineProps({ logVal: { type: String, }, + hiddenLogVisible: { + type: Function, + }, }) const columns = ref([ @@ -46,6 +68,10 @@ const chooseLog = () => { props.changeLogVal(selectedValues.value[0]) } +const handleClickClose = () => { + props.hiddenLogVisible() +} + const selectedValues = ref([localStorage.getItem('logVal') || '6'] || ['6']) watch(() => { @@ -75,6 +101,12 @@ watch(() => { display: flex; flex-direction: column; align-items: center; + position: relative; + .close { + position: absolute; + right: 24px; + top: 18px; + } .title { font-family: Source Han Sans CN; font-size: 22px;