瀏覽代碼

修复全屏打开后点详情自动关闭的问题

valentichu 1 年之前
父節點
當前提交
abde7d733f
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0 0
      lib/index.js
  2. 1 5
      src/pages/Alarm/components/detail.jsx

文件差異過大導致無法顯示
+ 0 - 0
lib/index.js


+ 1 - 5
src/pages/Alarm/components/detail.jsx

@@ -37,11 +37,7 @@ const Detail = (props) => {
     setTags([]);
     setTags([]);
   });
   });
   useEffect(() => {
   useEffect(() => {
-    if (options.group) {
-      setCurrent("history");
-      setTags([]);
-      setRuleId(undefined);
-    } else if (options.ruleId || options.pointId) {
+    if (options.ruleId || options.pointId) {
       getRuleIdByPointId(options.ruleId, options.pointId);
       getRuleIdByPointId(options.ruleId, options.pointId);
     } else if (options.detail) {
     } else if (options.detail) {
       setRuleId([options.detail.rule_id]);
       setRuleId([options.detail.rule_id]);

部分文件因文件數量過多而無法顯示