Prechádzať zdrojové kódy

将 /api/data 前缀修改为 /api/content

reghao 2 rokov pred
rodič
commit
ffa66837a8
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      src/api/map.js

+ 5 - 5
src/api/map.js

@@ -1,10 +1,10 @@
 import { get, post } from '@/utils/request'
 
 const mapAPI = {
-  center: '/apicontentmap/center',
-  markers: '/apicontentmap/markers',
-  markerInfoApi: '/apicontentmap/marker',
-  location: '/apicontentmap/location'
+  center: '/api/content/map/center',
+  markers: '/api/content/map/markers',
+  markerInfoApi: '/api/content/map/marker',
+  location: '/api/content/map/location'
 }
 
 export function getMapCenter() {
@@ -16,7 +16,7 @@ export function getMarkerInfo(id) {
 }
 
 export function getMapMarkers(type) {
-  return get(mapAPI.markers + '?type=' + type)
+  return get(mapAPI.markers + "?type=" + type)
 }
 
 export function sendClickedLocation(loc) {