mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
Use text
field instead of html
field in SweetAlert2
This commit is contained in:
parent
0c82cd3950
commit
3dd5943e17
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user