You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
506 B

/*
* @Author: your name
* @Date: 2021-10-14 13:52:20
* @LastEditTime: 2021-10-14 13:59:58
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/getMap/index.js
*/
import axios from 'axios';
export function createMap(name) {
return new Promise((resolve, reject) => {
let url = `/map/${name}.json`;
axios.get(url).then(res => {
resolve(res)
}).catch(() => {
reject(false)
})
})
}