|
|
@@ -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]);
|