Browse Source

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

valentichu 1 year ago
parent
commit
abde7d733f
2 changed files with 1 additions and 5 deletions
  1. 0 0
      lib/index.js
  2. 1 5
      src/pages/Alarm/components/detail.jsx

File diff suppressed because it is too large
+ 0 - 0
lib/index.js


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

@@ -37,11 +37,7 @@ const Detail = (props) => {
     setTags([]);
   });
   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);
     } else if (options.detail) {
       setRuleId([options.detail.rule_id]);

Some files were not shown because too many files changed in this diff