CN-39 feat: 地图
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user