hertzbeat icon indicating copy to clipboard operation
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.

Open qiqiqiqiya opened this issue 1 year ago • 2 comments

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

qiqiqiqiya avatar Mar 14 '24 06:03 qiqiqiqiya

👍Received, thanks.

tomsun28 avatar Mar 15 '24 12:03 tomsun28

This may be due to the failure to reset data objects when the page is closed, such as cascadeValues:

f01cab06d7bc547872da23004c1d0cb

And alertRules:

0d59946ccf7614bc19f39eba09e53c5

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:

image

After closing/canceling the page:

image

starmilkxin avatar Mar 27 '24 12:03 starmilkxin