From 1b56019448b4227b57c2cee84f4a83780a0cd74f Mon Sep 17 00:00:00 2001 From: guoapeng Date: Mon, 7 Jul 2025 11:05:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=85=E9=99=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.vue | 1 - src/layouts/default.vue | 24 ++++++++++-------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/app.vue b/src/app.vue index 4fffb79..389b2b6 100644 --- a/src/app.vue +++ b/src/app.vue @@ -17,7 +17,6 @@ import { useSealStore } from './stores/sealStore' */ // 状态管理 -const deviceStore = useDeviceStore() const homeStore = useHomeStore() const formulaStore = useFormulaStore() const liquidStore = useLiquidStore() diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 1c4740b..333857b 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -3,6 +3,7 @@ import { syncSendCmd } from 'apis/system' import WifiConnSvg from 'assets/images/wifi-conn.svg' import WifiUnconnSvg from 'assets/images/wifi-unconn.svg' import NetReconnection from 'components/system/NetReconnection.vue' +import { ElMessageBox } from 'element-plus' import { delToken } from 'libs/token' import { formatDateTime } from 'libs/utils' import { authRoutes } from 'router/routes' @@ -18,7 +19,6 @@ import { useLiquidStore } from '@/stores/liquidStore' import { useSealStore } from '@/stores/sealStore' import { useSystemStore } from '@/stores/systemStore' import SystemLog = System.SystemLog -import { ElMessageBox } from 'element-plus' // const routes = generateRoutes() // const childrenRoutes = routes.find(r => r.path === '/')?.children || [] @@ -200,15 +200,11 @@ const handleClose = async (item: SystemLog, key: number) => { systemStore.systemLogList.splice(key, 1) } const handleCloseAll = async () => { - await ElMessageBox.confirm( - '确认清除所有?', - 'Warning', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ) + await ElMessageBox.confirm('确认清除所有?', '提示', { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }) for (let i = 0; i < systemStore.systemLogList.length; i++) { const item = systemStore.systemLogList[i] const evenid = item.uuid @@ -456,19 +452,19 @@ const handleCloseAll = async () => { width: 100%; } } - .close-btn{ - display: flex; + .close-btn { + display: flex; justify-content: center; align-items: flex-end; margin-top: 12px; } - .tag-box{ + .tag-box { height: 350px; overflow: auto; } } :deep(.el-popover) { - padding: 10px!important; + padding: 10px !important; } .aside { overflow: hidden;