:fix: 修正show.html中对Robot.WechatID的引用,确保状态显示逻辑正确
All checks were successful
BuildImage / build-image (push) Successful in 1m57s

This commit is contained in:
李寻欢 2025-04-22 21:02:45 +08:00
parent fb94ce31a6
commit 963ae62367

View File

@ -56,7 +56,7 @@
<div class="flex justify-between text-sm"> <div class="flex justify-between text-sm">
<span class="text-gray-600">状态</span> <span class="text-gray-600">状态</span>
<span class="{{if eq .Robot.Status "online"}}text-emerald-600{{else if eq .Robot.Status "error"}}text-red-600{{else}}text-gray-600{{end}}"> <span class="{{if eq .Robot.Status "online"}}text-emerald-600{{else if eq .Robot.Status "error"}}text-red-600{{else}}text-gray-600{{end}}">
{{if .robot.WechatID}} {{if .Robot.WechatID}}
{{if eq .Robot.Status "online"}}在线{{else if eq .Robot.Status "error"}}错误{{else}}离线{{end}} {{if eq .Robot.Status "online"}}在线{{else if eq .Robot.Status "error"}}错误{{else}}离线{{end}}
{{else}} {{else}}
待绑定微信号 待绑定微信号