refactor: ♻️ Refactor Alert
This commit is contained in:
parent
265bc1e98f
commit
868a57b2a4
|
@ -48,7 +48,7 @@ export default class Alert extends Component implements ClassComponent<{
|
|||
);
|
||||
}
|
||||
|
||||
oninit() {
|
||||
oninit(vnode) {
|
||||
if (this.attrs.get('id')) {
|
||||
this.attrs.put('id', uniqueId('dialog_'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue