pinia引入
This commit is contained in:
@@ -8,12 +8,14 @@ function msg(title, duration = 1000) {
|
||||
});
|
||||
}
|
||||
|
||||
function show(title, msg, showCancel = true) {
|
||||
function show(title, msg, showCancel = true, cancelText = '取消', confirmText = '确定') {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.showModal({
|
||||
title: title,
|
||||
content: msg,
|
||||
showCancel: showCancel,
|
||||
cancelText: cancelText,
|
||||
confirmText: confirmText,
|
||||
success: function(res) {
|
||||
resolve(res.confirm)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user