|
@@ -5,7 +5,8 @@ import icpList from '@/utils/ipc';
|
|
|
import socket from "@/stores/modules/socket";
|
|
import socket from "@/stores/modules/socket";
|
|
|
|
|
|
|
|
export function isErrorLogMessage(message?: string) {
|
|
export function isErrorLogMessage(message?: string) {
|
|
|
- return String(message || '').trimStart().startsWith('!');
|
|
|
|
|
|
|
+ const text = String(message || '').trimStart();
|
|
|
|
|
+ return text.startsWith('!') || text.startsWith('!');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface McuErrorLog {
|
|
export interface McuErrorLog {
|
|
@@ -32,7 +33,7 @@ const useDeviceStatusStore = defineStore('deviceStatus', () => {
|
|
|
// 未读数量(全部日志)
|
|
// 未读数量(全部日志)
|
|
|
const unreadCount = ref(0);
|
|
const unreadCount = ref(0);
|
|
|
|
|
|
|
|
- // 以 ! 开头的未读报错数量(用于顶部设备状态气泡)
|
|
|
|
|
|
|
+ // 以半角 ! 或全角 ! 开头的未读报错数量(用于顶部设备状态气泡)
|
|
|
const errorUnreadCount = ref(0);
|
|
const errorUnreadCount = ref(0);
|
|
|
|
|
|
|
|
// 弹窗是否显示
|
|
// 弹窗是否显示
|