|
|
@@ -11,6 +11,7 @@ import {faToggleOff, faToggleOn} from "@fortawesome/free-solid-svg-icons";
|
|
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
|
|
|
|
|
import {useRef, useState} from "react";
|
|
|
+import globalMessage from "@/app/_modules/globalMessage";
|
|
|
|
|
|
//查询表格数据API
|
|
|
const queryAPI = "/api/monitor/online/list";
|
|
|
@@ -138,14 +139,14 @@ export default function Online() {
|
|
|
});
|
|
|
if (body !== undefined) {
|
|
|
if (body.code == 200) {
|
|
|
- App.useApp().message.success("强退成功");
|
|
|
+ globalMessage.success("强退成功");
|
|
|
|
|
|
//刷新列表
|
|
|
if (actionTableRef.current) {
|
|
|
actionTableRef.current.reload();
|
|
|
}
|
|
|
} else {
|
|
|
- App.useApp().message.error(body.msg);
|
|
|
+ globalMessage.error(body.msg);
|
|
|
}
|
|
|
}
|
|
|
setLogoutModalVisible(false);
|