From bb49108a5fec63cfc358e667d8ff7f379c80995f Mon Sep 17 00:00:00 2001 From: veypi Date: Thu, 19 Oct 2023 22:11:28 +0800 Subject: [PATCH] update sys info --- oab/src/main.rs | 2 +- oaweb/src/boot/api/index.ts | 2 ++ oaweb/src/pages/app/oasys.vue | 64 ++++++++++++++++++++++++----------- 3 files changed, 48 insertions(+), 20 deletions(-) diff --git a/oab/src/main.rs b/oab/src/main.rs index f853d9e..7a77846 100644 --- a/oab/src/main.rs +++ b/oab/src/main.rs @@ -64,7 +64,7 @@ async fn web(data: AppState) -> Result<()> { return Err(oab::Error::Unknown); } }; - libs::task::start_nats_online(client.clone()); + // libs::task::start_nats_online(client.clone()); client .publish("msg".to_string(), Bytes::from("asd")) .await diff --git a/oaweb/src/boot/api/index.ts b/oaweb/src/boot/api/index.ts index 4158b3c..8632e06 100644 --- a/oaweb/src/boot/api/index.ts +++ b/oaweb/src/boot/api/index.ts @@ -11,6 +11,7 @@ import token from "./token"; import user from "./user"; import resource from "./resource"; import access from './access'; +import nats from './nats' @@ -21,6 +22,7 @@ const api = { role, resource, access, + nats } diff --git a/oaweb/src/pages/app/oasys.vue b/oaweb/src/pages/app/oasys.vue index b337e8e..6107299 100644 --- a/oaweb/src/pages/app/oasys.vue +++ b/oaweb/src/pages/app/oasys.vue @@ -6,20 +6,32 @@ -->