格式化代码,websocket功能完善

This commit is contained in:
2026-02-18 21:50:05 +08:00
parent 6543e2ccdd
commit b6c133952b
101 changed files with 15829 additions and 10739 deletions
@@ -11,7 +11,11 @@
</template>
</a-list-item-meta>
<template #actions>
<a-button type="primary" size="small" @click="handleAction(item.action)">
<a-button
type="primary"
size="small"
@click="handleAction(item.action)"
>
{{ item.buttonText }}
</a-button>
</template>
@@ -21,56 +25,56 @@
</template>
<script setup>
import { ref } from 'vue'
import { message } from 'ant-design-vue'
import { ref } from "vue";
import { message } from "ant-design-vue";
const emit = defineEmits(['change-password'])
const emit = defineEmits(["change-password"]);
const securityList = ref([
{
title: '登录密码',
description: '用于登录系统的密码,建议定期更换',
buttonText: '修改',
action: 'password',
title: "登录密码",
description: "用于登录系统的密码,建议定期更换",
buttonText: "修改",
action: "password",
},
{
title: '手机验证',
description: '用于接收重要通知和安全验证',
buttonText: '已绑定',
action: 'phone',
title: "手机验证",
description: "用于接收重要通知和安全验证",
buttonText: "已绑定",
action: "phone",
},
{
title: '邮箱验证',
description: '用于接收重要通知和账号找回',
buttonText: '已绑定',
action: 'email',
title: "邮箱验证",
description: "用于接收重要通知和账号找回",
buttonText: "已绑定",
action: "email",
},
{
title: '登录设备',
description: '查看和管理已登录的设备',
buttonText: '查看',
action: 'device',
title: "登录设备",
description: "查看和管理已登录的设备",
buttonText: "查看",
action: "device",
},
])
]);
const handleAction = (action) => {
switch (action) {
case 'password':
emit('change-password')
break
case 'phone':
message.info('手机绑定功能开发中')
break
case 'email':
message.info('邮箱绑定功能开发中')
break
case 'device':
message.info('登录设备管理功能开发中')
break
case "password":
emit("change-password");
break;
case "phone":
message.info("手机绑定功能开发中");
break;
case "email":
message.info("邮箱绑定功能开发中");
break;
case "device":
message.info("登录设备管理功能开发中");
break;
default:
break
break;
}
}
};
</script>
<style scoped lang="scss">