CN-39 feat: 地图

This commit is contained in:
chenjinsong
2021-07-01 15:39:48 +08:00
parent fbdf0ba81e
commit 3a30733be0
29 changed files with 126 additions and 5867 deletions

View File

@@ -5,6 +5,7 @@
*/
import { get, post } from '@/utils/http'
import { sortByOrderNum } from '@/permission'
import {storageKey} from "@/utils/constants";
export const api = {
// 系统相关
@@ -77,3 +78,9 @@ export async function getI18n () {
})
return await request
}
export function loadIso36112 () {
get(`${process.env.BASE_URL}geojson/data/countriesWithCapital.json`).then(response => {
sessionStorage.setItem(storageKey.iso36112, JSON.stringify(response))
})
}