| | |
| | |
|
| | | /*
|
| | | * @LastEditors: Please set LastEditors
|
| | | * @LastEditTime: 2022-10-25 15:34:56
|
| | | * @LastEditTime: 2023-02-24 15:04:36
|
| | | */
|
| | | import axios from 'axios';
|
| | |
|
| | |
| | | */
|
| | | export const GETNOBASE = async (url: string, params?: Params): Promise<any> => {
|
| | | try {
|
| | | const data = await axios.get(location.pathname+url, {
|
| | | const data = await axios.get(url, {
|
| | | params: params,
|
| | | });
|
| | | return data;
|
| | |
| | | mapjson = mapjson.geoJSON;
|
| | | resolve(mapjson);
|
| | | } else {
|
| | | mapjson = await GETNOBASE(`map-geojson/${regionCode}.json`).then(
|
| | | mapjson = await GETNOBASE(`./map-geojson/${regionCode}.json`).then(
|
| | | (data) => data
|
| | | );
|
| | | code.value=regionCode
|