修复notify未清理item节点的问题

This commit is contained in:
bansomin
2025-01-02 10:49:09 +08:00
parent 31f9d54d9d
commit 4c9f08e28e

View File

@@ -1,8 +1,8 @@
/*
* @Author: dgflash
* @Date: 2022-04-14 17:08:01
* @LastEditors: dgflash
* @LastEditTime: 2022-09-02 14:07:13
* @LastEditors: bansomin
* @LastEditTime: 2025-01-02 10:47:47
*/
import { Animation, Component, Label, _decorator } from "cc";
import { LanguageLabel } from "../../../libs/gui/language/LanguageLabel";
@@ -27,7 +27,7 @@ export class Notify extends Component {
}
private onFinished() {
this.node.destroy();
this.node.parent!.destroy();
this.onComplete && this.onComplete();
this.onComplete = null!;
}