pinia引入

This commit is contained in:
yanghang
2025-06-30 14:54:39 +08:00
parent 7833c0f1a5
commit e1da68c59b
10 changed files with 697 additions and 114 deletions
+3 -1
View File
@@ -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)
},