提交 8bed2a9b 编写于 作者: 雪洛's avatar 雪洛

chore: update modal title

上级 db9de5e6
......@@ -38,7 +38,7 @@
const content = '熟悉uts语法'
todo.add(title, content).then<void>((res: UTSJSONObject) : void => {
uni.showModal({
title: '错误',
title: '提示',
content: res['showMessage'] as string,
showCancel: false
})
......@@ -55,7 +55,7 @@
})
todoObj.randomFail().then<void>((res: UTSJSONObject) : void => {
uni.showModal({
title: '错误',
title: '提示',
content: res['showMessage'] as string,
showCancel: false
})
......@@ -68,7 +68,7 @@
const todo = uniCloud.importObject('todo')
todo.fail().then<void>((res: UTSJSONObject) : void => {
uni.showModal({
title: '错误',
title: '提示',
content: 'todo.fail应调用失败,此处错误的触发了成功回调',
showCancel: false
})
......@@ -82,7 +82,7 @@
const todo = uniCloud.importObject('todo')
todo.success().then<void>((res: UTSJSONObject) : void => {
uni.showModal({
title: '错误',
title: '提示',
content: res['showMessage'] as string,
showCancel: false
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册