From 9bcc4d631b37ed9f690d60369492c9786e7e9a24 Mon Sep 17 00:00:00 2001
From: 追梦稻草人Li <emmsl@qq.com>
Date: 星期二, 23 四月 2024 09:50:07 +0800
Subject: [PATCH] !106 [轻量级pr] add 新增用户选择角色时 可搜索功能 * update src/views/system/user/index.vue. * add 新增角色可搜索
---
src/api/monitor/online/index.ts | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/api/monitor/online/index.ts b/src/api/monitor/online/index.ts
index 3d9034a..7484702 100644
--- a/src/api/monitor/online/index.ts
+++ b/src/api/monitor/online/index.ts
@@ -18,3 +18,19 @@
method: 'delete'
});
}
+
+// 鑾峰彇褰撳墠鐢ㄦ埛鐧诲綍鍦ㄧ嚎璁惧
+export function getOnline() {
+ return request({
+ url: '/monitor/online',
+ method: 'get'
+ });
+}
+
+// 鍒犻櫎褰撳墠鍦ㄧ嚎璁惧
+export function delOnline(tokenId: string) {
+ return request({
+ url: '/monitor/online/' + tokenId,
+ method: 'post'
+ });
+}
--
Gitblit v1.9.3