Merge pull request #107 from Bravoyk/master

🌈  Modify the popup window 

Co-authored-by: Bravoyk <11516611+Bravoyk@users.noreply.github.com>
This commit is contained in:
naiba 2021-03-02 15:04:42 +08:00 committed by GitHub
commit c16d62c2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,12 +42,30 @@
$('#settingForm').submit(function () {
$.post('/api/setting', $('#settingForm').serialize()).then((resp) => {
if (resp.code == 200) {
alert("保存成功")
$.suiAlert({
title: '',
description: '修改成功',
type: 'success',
time: '3',
position: 'top-center',
});
} else {
alert(resp.message)
$.suiAlert({
title: '',
description:resp.message,
type: 'error',
time: '3',
position: 'top-center',
});
}
}).error(err => {
alert(err)
$.suiAlert({
title: '',
description:err,
type: 'error',
time: '3',
position: 'top-center',
});
})
return false;
})