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;