兰宝车间质量管理系统-前端
疯狂的狮子Li
2023-12-06 9b28d14bc38135ad3a5f3e9b7fbb3b1af4b02c71
fix 修复 在线用户 强推按钮点击取消控制台警告问题
已修改1个文件
12 ■■■■■ 文件已修改
src/views/monitor/online/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/monitor/online/index.vue
@@ -63,6 +63,8 @@
<script setup name="Online" lang="ts">
import { forceLogout, list as initData } from "@/api/monitor/online";
import { OnlineQuery, OnlineVO } from "@/api/monitor/online/types";
import api from "@/api/system/user";
import {to} from "await-to-js";
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { sys_device_type } = toRefs<any>(proxy?.useDict("sys_device_type"));
@@ -100,10 +102,12 @@
}
/** 强退按钮操作 */
const handleForceLogout = async (row: OnlineVO) => {
  await proxy?.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?');
  await forceLogout(row.tokenId);
  await getList();
  proxy?.$modal.msgSuccess("删除成功");
  const [err] = await to(proxy?.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?') as any);
  if (!err) {
    await forceLogout(row.tokenId);
    await getList();
    proxy?.$modal.msgSuccess("删除成功");
  }
}
onMounted(() => {