提交 8610f162 编写于 作者: fxy060608's avatar fxy060608

fix(h5): ios8.x,ios9.x dataset empty

上级 1198bbdb
......@@ -9,8 +9,10 @@ export function isPage (vm) {
return false
}
export function normalizeDataset (dataset = {}) {
const result = Object.assign({}, dataset)
export function normalizeDataset (dataset = {}) {
// ios8.x,9.x Object.assign({},dataset) 始终返回 {}
// http://ask.dcloud.net.cn/question/70246
const result = JSON.parse(JSON.stringify(dataset))
if (__PLATFORM__ === 'h5') {
const keys = Object.keys(result)
const len = keys.length
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册