提交 f5895c75 编写于 作者: 杜庆泉's avatar 杜庆泉

storage object展示方式优化

上级 ede8b889
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
success: (res) => { success: (res) => {
uni.showModal({ uni.showModal({
title: '读取数据成功', title: '读取数据成功',
content: "data: '" + res.data + "'", content: "data: '" + JSON.stringify(res.data) + "'",
showCancel: false, showCancel: false,
}) })
}, },
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
let ret = uni.getStorageSync(key) let ret = uni.getStorageSync(key)
uni.showModal({ uni.showModal({
title: '读取数据成功', title: '读取数据成功',
content: "data: '" + ret + "'", content: "data: '" + JSON.stringify(ret) + "'",
showCancel: false, showCancel: false,
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册