Browse Source

fix: alpha core can't display memory

WhizPanda 1 năm trước cách đây
mục cha
commit
3ae633a2a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/layout/layout-traffic.tsx

+ 1 - 1
src/components/layout/layout-traffic.tsx

@@ -47,7 +47,7 @@ export const LayoutTraffic = () => {
   }, [clashInfo, pageVisible]);
 
   /* --------- meta memory information --------- */
-  const isMetaCore = verge?.clash_core === "clash-meta";
+  const isMetaCore = verge?.clash_core?.includes("clash-meta");
   const displayMemory = isMetaCore && (verge?.enable_memory_usage ?? true);
 
   const memoryWs = useWebsocket(