From 521ced6aeb7557e2d75326f65edb3eaa27636a50 Mon Sep 17 00:00:00 2001 From: "lily.zhang" Date: Fri, 19 Nov 2021 10:16:21 +0800 Subject: [PATCH] cxw-010203 --- src/api/getMap/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/getMap/index.js b/src/api/getMap/index.js index bb6fc8d..dc870a0 100644 --- a/src/api/getMap/index.js +++ b/src/api/getMap/index.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-14 13:52:20 - * @LastEditTime: 2021-10-14 13:59:58 + * @LastEditTime: 2021-11-19 10:13:51 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/api/getMap/index.js @@ -10,7 +10,7 @@ import axios from 'axios'; export function createMap(name) { return new Promise((resolve, reject) => { - let url = `/map/${name}.json`; + let url = `./map/${name}.json`; axios.get(url).then(res => { resolve(res) }).catch(() => {