This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化layer

old
宇天 2021-06-10 23:38:03 +08:00
parent 9d45ca3cbf
commit 0073d66016
1 changed files with 2 additions and 2 deletions

View File

@ -715,7 +715,7 @@ function _layer(opt) {
} }
Object.assign(_layer, { Object.assign(_layer, {
alert(content, title = lang.TITLE, btns = false) { alert(content, title = lang.TITLE, btns) {
if (typeof title === 'object') { if (typeof title === 'object') {
btns = title btns = title
title = lang.TITLE title = lang.TITLE
@ -728,7 +728,7 @@ Object.assign(_layer, {
btns btns
}) })
}, },
confirm(content, title = lang.TITLE, btns = false) { confirm(content, title = lang.TITLE, btns) {
if (typeof title === 'object') { if (typeof title === 'object') {
btns = title btns = title
title = lang.TITLE title = lang.TITLE