perf: entity架子、优化前端体积

This commit is contained in:
chenjinsong
2021-07-07 15:28:11 +08:00
parent 0cdb7eec92
commit 20a24c996d
5 changed files with 30 additions and 8 deletions

View File

@@ -433,7 +433,7 @@ export function getCapitalGeo (countryId) {
return data[countryId]
}
export function JSONParse (data) {
function JSONParse (data) {
const firstParse = JSON.parse(data)
if (typeof firstParse === 'string') {
return JSON.parse(firstParse)