Browse Source

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

reghao 2 năm trước cách đây
mục cha
commit
33fda5ba9e
2 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 6 6
      src/api/map.js
  2. 2 2
      src/api/visit.js

+ 6 - 6
src/api/map.js

@@ -1,10 +1,10 @@
-import { get, post, delete0 } from '@/utils/request'
+import { get, post } from '@/utils/request'
 
 const mapAPI = {
-  center: '/api/data/map/center',
-  markers: '/api/data/map/markers',
-  markerInfoApi: '/api/data/map/marker',
-  location: '/api/data/map/location'
+  center: '/apicontentmap/center',
+  markers: '/apicontentmap/markers',
+  markerInfoApi: '/apicontentmap/marker',
+  location: '/apicontentmap/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) {

+ 2 - 2
src/api/visit.js

@@ -1,7 +1,7 @@
-import { get, post, delete0 } from '@/utils/request'
+import { get, delete0 } from '@/utils/request'
 
 const visitApi = {
-  visitRecordApi: '/api/data/video/visit',
+  visitRecordApi: '/api/content/video/visit'
 }
 
 // 获取用户的视频观看记录