From 2f8a257efd2b64dc40666b0d332edb7824a9768d Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期日, 27 四月 2025 09:58:29 +0800 Subject: [PATCH] remove all semicolons --- src/views/monitor/online/index.vue | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index 5f4b268..21f6463 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -58,52 +58,52 @@ </template> <script setup name="Online"> -import { forceLogout, list as initData } from "@/api/monitor/online"; +import { forceLogout, list as initData } from "@/api/monitor/online" -const { proxy } = getCurrentInstance(); +const { proxy } = getCurrentInstance() -const onlineList = ref([]); -const loading = ref(true); -const total = ref(0); -const pageNum = ref(1); -const pageSize = ref(10); +const onlineList = ref([]) +const loading = ref(true) +const total = ref(0) +const pageNum = ref(1) +const pageSize = ref(10) const queryParams = ref({ ipaddr: undefined, userName: undefined -}); +}) /** 鏌ヨ鐧诲綍鏃ュ織鍒楄〃 */ function getList() { - loading.value = true; + loading.value = true initData(queryParams.value).then(response => { - onlineList.value = response.rows; - total.value = response.total; - loading.value = false; - }); + onlineList.value = response.rows + total.value = response.total + loading.value = false + }) } /** 鎼滅储鎸夐挳鎿嶄綔 */ function handleQuery() { - pageNum.value = 1; - getList(); + pageNum.value = 1 + getList() } /** 閲嶇疆鎸夐挳鎿嶄綔 */ function resetQuery() { - proxy.resetForm("queryRef"); - handleQuery(); + proxy.resetForm("queryRef") + handleQuery() } /** 寮洪��鎸夐挳鎿嶄綔 */ function handleForceLogout(row) { proxy.$modal.confirm('鏄惁纭寮洪��鍚嶇О涓�"' + row.userName + '"鐨勭敤鎴�?').then(function () { - return forceLogout(row.tokenId); + return forceLogout(row.tokenId) }).then(() => { - getList(); - proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => {}); + getList() + proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛") + }).catch(() => {}) } -getList(); +getList() </script> -- Gitblit v1.9.3