perf: entity架子、优化前端体积
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user