瀏覽代碼

fix: add detectChanges for QR modal display

gangvy 5 月之前
父節點
當前提交
5055fec657
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/app/app.ts

+ 1 - 0
src/app/app.ts

@@ -396,6 +396,7 @@ export class App implements OnInit {
       // 4. Show QR modal
       this.showQrModal = true;
       this.paySuccess = false;
+      this.cdr.detectChanges();
 
       // Wait for DOM update, then render QR
       setTimeout(() => this.renderQR(codeUrl), 100);