后台增加wss连接

This commit is contained in:
lccsw
2025-11-17 09:18:02 +08:00
parent 864be75e2f
commit d1f5040f8e
+18 -3
View File
@@ -73,17 +73,33 @@
</div>
<div class="header-notice">
<a class="tit" href="javascript:;">通知<b><i>{{ countNotice }}</i></b></a>
<ul class="dropdown-list">
<ul class="dropdown-list" style="width: 180px">
<template v-if="notice.length > 0">
<li v-for="item in notice">
<a href="#">{{ item.content }}</a>
<a href="#"
style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
{{ item.content}}
</a>
</li>
<!-- 按钮容器:使用Flex实现左右分栏 -->
<li style="display: flex; border-top: 1px solid #eee; margin-top: 4px;">
<a href="javascript:void(0);"
style="color: #ff4d4f; flex: 1; text-align: center; padding: 4px 0; text-decoration: none;">
<i class="fa"></i> 清除所有
</a>
<a href="javascript:void(0);"
style="flex: 1; text-align: center; padding: 4px 0; text-decoration: none; color: inherit;">
<i class="fa"></i> 查看更多
</a>
</li>
<!--
<a href="javascript:void(0);" style="color: #ff4d4f; border-top: 1px solid #eee;">
<i class="fa"></i> 清除所有
</a>
<a href="javascript:void(0);">
<i class="fa"></i> 查看更多
</a>
-->
</template>
<li v-if="notice.length === 0">
<a href="javascript:void(0);" style="color: #999; cursor: default;">暂无通知</a>
@@ -342,7 +358,6 @@
}
function showNotification(message) {
// 使用现有的 layer.js 显示通知
layer.msg(message, {
time: 5000,
icon: 1,