diff --git a/src/layouts/components/Tools/index.vue b/src/layouts/components/Tools/index.vue index 13377a4..130ee5d 100644 --- a/src/layouts/components/Tools/index.vue +++ b/src/layouts/components/Tools/index.vue @@ -30,6 +30,10 @@ { id: '2', message: '收到一条证书到期提醒', time: '2022-07-20 18:32:00' }, { id: '3', message: '有新的借用申请待审批', time: '2022-07-20 18:32:00' }, { id: '4', message: '您的请假申请已通过', time: '2022-07-20 18:32:00' }, + { id: '1', message: '示例消息', time: '2022-07-20 18:32:00' }, + { id: '2', message: '收到一条证书到期提醒', time: '2022-07-20 18:32:00' }, + { id: '3', message: '有新的借用申请待审批', time: '2022-07-20 18:32:00' }, + { id: '4', message: '您的请假申请已通过', time: '2022-07-20 18:32:00' }, ] function userCommand(command: 'dashboard' | 'resetPassword' | 'setting' | 'hotkeys' | 'logout') { @@ -66,6 +70,10 @@ // 连接 websocket websocket.initWebSocket() }) +onBeforeMount(() => { + // 断开 websocket + // websocket.destroyWebSocket() +}) diff --git a/src/views/system/tool/fileConfiguration/configuration.vue b/src/views/system/tool/fileConfiguration/configuration.vue index 21b4230..d699e65 100644 --- a/src/views/system/tool/fileConfiguration/configuration.vue +++ b/src/views/system/tool/fileConfiguration/configuration.vue @@ -1,12 +1,9 @@