Use text field instead of html field in SweetAlert2

This commit is contained in:
Pig Fang 2018-08-21 14:49:16 +08:00
parent 0c82cd3950
commit 3dd5943e17

View File

@ -16,10 +16,7 @@ export async function logout() {
const { msg } = await post('/auth/logout');
setTimeout(() => window.location = blessing.base_url, 1000);
swal({
type: 'success',
html: msg
});
swal({ type: 'success', text: msg });
}
$('#logout-button').click(logout);