hertzbeat
hertzbeat copied to clipboard
[BUG] <title>Alarm module-Threshold rule list editing module pop-up window is closed and a new one is created at this time. The last edited data is retained in the pop-up window.
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
No response
Expected Behavior
No response
Steps To Reproduce
No response
Environment
HertzBeat version(s):
Debug logs
No response
Anything else?
No response
👍Received, thanks.
This may be due to the failure to reset data objects when the page is closed, such as cascadeValues:
And alertRules:
Reset it when closing the page, which seems to have resolved the issue for now:
onManageModalCancel() {
this.cascadeValues = [];
this.alertRules = [{}];
this.isExpr = false;
this.isManageModalVisible = false;
}
Edit page:
After closing/canceling the page: