fix: 手机端内核过低报错. 69.0.3497.100

conf/amap
Lei OT 2 years ago
parent e2423c1b85
commit c17f8e8f85

@ -20,6 +20,19 @@ if (!String.prototype.padStart) {
};
}
if (!Object.fromEntries) {
Object.fromEntries = function(entries) {
const obj = {};
for (let i = 0; i < entries.length; ++i) {
const entry = entries[i];
if (entry && entry.length === 2) {
obj[entry[0]] = entry[1];
}
}
return obj;
};
}
export function copy(obj) {
return JSON.parse(JSON.stringify(obj));
}

Loading…
Cancel
Save