Browse Source

fix: 清除提示

master
guoapeng 2 weeks ago
parent
commit
1b56019448
  1. 1
      src/app.vue
  2. 10
      src/layouts/default.vue

1
src/app.vue

@ -17,7 +17,6 @@ import { useSealStore } from './stores/sealStore'
*/
//
const deviceStore = useDeviceStore()
const homeStore = useHomeStore()
const formulaStore = useFormulaStore()
const liquidStore = useLiquidStore()

10
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',
{
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

Loading…
Cancel
Save