😎1、优化在线用户相关代码 2、更新翻译文件(增加繁体)

This commit is contained in:
zuohuaijun 2025-08-15 21:38:53 +08:00
parent 3d74a0b539
commit a24580b036
5 changed files with 8291 additions and 8285 deletions

File diff suppressed because it is too large Load Diff

View File

@ -79,7 +79,7 @@
"vue-router": "^4.5.1",
"vue-signature-pad": "^3.0.2",
"vue3-tree-org": "^4.2.2",
"vxe-pc-ui": "^4.8.18",
"vxe-pc-ui": "^4.8.19",
"vxe-table": "^4.15.8",
"xe-utils": "^3.7.8",
"xlsx-js-style": "^1.2.0"

View File

@ -1,6 +1,6 @@
<template>
<div class="sys-onlineUser-container">
<el-drawer v-model="state.isVisible" size="50%">
<el-drawer v-model="state.isVisible" size="40%">
<template #header>
<div style="color: #fff">
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-UserFilled /> </el-icon>

View File

@ -32,14 +32,19 @@ connection.onclose(async () => {
connection.onreconnecting(() => {
ElNotification({
title: '提示',
message: '服务器已线...',
message: '服务器已线...',
type: 'error',
position: 'bottom-right',
});
});
// 重连成功
connection.onreconnected(() => {
console.log('重连成功');
ElNotification({
title: '提示',
message: '服务器已上线...',
type: 'success',
position: 'bottom-right',
});
});
// 用户列表
connection.on('OnlineUserList', () => {});

View File

@ -78,9 +78,10 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
isClear: true,
// 翻译器
translator: new EmptyTranslator(),
// 火山引擎AI翻译器 https://www.volcengine.com/docs/82379/1330310
// translator: new VolcengineTranslator({
// apiKey: '',
// model: '',
// model: 'deepseek-r1-250528',
// }),
// translator: new YoudaoTranslator({
// appId: '',