소스 검색

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

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([]);
   });
   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]);

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.