重构:抽取 switchTarget/openUserCard 到独立文件 user-actions.blade.php

- 新增 chat/partials/user-actions.blade.php 作为用户交互全局函数
- 从 scripts.blade.php 中移除 switchTarget、openUserCard、showUserInfoInSay2
- frame.blade.php 在 scripts 之前引入 user-actions
- 代码职责更清晰,方便维护
This commit is contained in:
2026-02-27 00:17:32 +08:00
parent ad8315f4a6
commit bf6f378613
3 changed files with 57 additions and 68 deletions
+1
View File
@@ -368,6 +368,7 @@
</div>
{{-- ═══════════ 聊天室交互脚本(独立文件维护) ═══════════ --}}
@include('chat.partials.user-actions')
@include('chat.partials.scripts')
{{-- ═══════════ 头像选择弹窗 ═══════════ --}}