Skip to content

Commit

Permalink
fix(h5): ios8.x,ios9.x dataset empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed May 9, 2019
1 parent 1198bbd commit 8610f16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8610f16

Please sign in to comment.