Commit 74b8e8c0 authored by Li Mingzhe's avatar Li Mingzhe

fix: anima btn close refresh

parent 54426673
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<!--配置龙骨面板--> <!--配置龙骨面板-->
<nz-modal [(nzVisible)]="animaPanelVisible" nzTitle="配置资源文件" (nzOnCancel)="animaPanelCancel()" (nzOnOk)="animaPanelOk()" nzOkText="保存"> <nz-modal [(nzVisible)]="animaPanelVisible" (nzAfterClose)="closePanel()" nzTitle="配置资源文件" (nzOnCancel)="animaPanelCancel()" (nzOnOk)="animaPanelOk()" nzOkText="保存">
<div class="anima-upload-btn"> <div class="anima-upload-btn">
<span style="margin-right: 10px">上传 ske_json 文件: </span> <span style="margin-right: 10px">上传 ske_json 文件: </span>
......
...@@ -161,10 +161,16 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges { ...@@ -161,10 +161,16 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
*/ */
refresh() { refresh() {
this.refreshEmitter.emit(); // this.refreshEmitter.emit();
// setTimeout(() => { setTimeout(() => {
// this.appRef.tick(); this.appRef.tick();
// }, 1); }, 1);
}
closePanel() {
console.log(' in closePanel ');
this.refresh();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment