update 代码规范化

This commit is contained in:
疯狂的狮子Li
2023-12-14 00:44:12 +08:00
parent 0541af5abb
commit 031d83828a
14 changed files with 315 additions and 114 deletions

View File

@ -61,10 +61,9 @@
</template>
<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";
import { forceLogout, list as initData } from '@/api/monitor/online';
import { OnlineQuery, OnlineVO } from '@/api/monitor/online/types';
import { to } from 'await-to-js';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { sys_device_type } = toRefs<any>(proxy?.useDict('sys_device_type'));
@ -106,9 +105,9 @@ const handleForceLogout = async (row: OnlineVO) => {
if (!err) {
await forceLogout(row.tokenId);
await getList();
proxy?.$modal.msgSuccess("删除成功");
proxy?.$modal.msgSuccess('删除成功');
}
}
};
onMounted(() => {
getList();