0

I'm using MessageBox as user login box, I need to programmatically close the box after a successful login, but I can't find anything from the document to enable my doing that.

Please help.

4

1 回答 1

1

有一种MessageBox.close方法可以关闭当前实例。

import { MessageBox } from 'element-ui';

// and later
MessageBox.close()

或者,如果您不使用捆绑程序...

ELEMENT.MessageBox.close()

演示 ~ https://jsfiddle.net/L0ejLvmr/6/

于 2018-03-09T04:37:19.160 回答