mirror of
https://github.com/yangzongzhuan/RuoYi-App.git
synced 2025-09-27 14:42:41 +00:00
支持Modal弹框自定义标题
This commit is contained in:
@@ -25,18 +25,18 @@ export default {
|
|||||||
uni.hideToast()
|
uni.hideToast()
|
||||||
},
|
},
|
||||||
// 弹出提示
|
// 弹出提示
|
||||||
alert(content) {
|
alert(content, title) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: title || '系统提示',
|
||||||
content: content,
|
content: content,
|
||||||
showCancel: false
|
showCancel: false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 确认窗体
|
// 确认窗体
|
||||||
confirm(content) {
|
confirm(content, title) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '系统提示',
|
title: title || '系统提示',
|
||||||
content: content,
|
content: content,
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
confirmText: '确定',
|
confirmText: '确定',
|
||||||
|
Reference in New Issue
Block a user