From 23bf4790df6b393cafbbce2a1c0c070d5f0dd929 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Wed, 28 Feb 2024 16:07:44 +0800 Subject: [PATCH] add 2 extra pages --- src/AlertListScreen.vue | 18 ++++++++++++++++++ src/App.vue | 9 +++++++-- src/MainScreen.vue | 18 ++++++++++++++++++ src/utils/useWebsocket.js | 3 ++- 4 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 src/AlertListScreen.vue create mode 100644 src/MainScreen.vue diff --git a/src/AlertListScreen.vue b/src/AlertListScreen.vue new file mode 100644 index 0000000..cdb87ae --- /dev/null +++ b/src/AlertListScreen.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/src/App.vue b/src/App.vue index 652ae79..94871f5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,20 @@ + + + + diff --git a/src/utils/useWebsocket.js b/src/utils/useWebsocket.js index 7e96d21..e6896f5 100644 --- a/src/utils/useWebsocket.js +++ b/src/utils/useWebsocket.js @@ -1,6 +1,7 @@ import Client from "./ws"; -export default function useWebsocket(store, path) { +export default function useWebsocket(store, path, excludePaths = []) { + if (excludePaths.includes(path)) return; // connect0(store); connectPath(store, path); }