mo 2 년 전
부모
커밋
55b833e408
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/school/attendance/components/teacher-attendDetail.tsx
  2. 2 2
      src/school/school-detail/eidt-school.tsx

+ 2 - 2
src/school/attendance/components/teacher-attendDetail.tsx

@@ -86,9 +86,9 @@ export default defineComponent({
       console.log(myPoint, attendanceScope.value)
       try {
         await postMessage({
-          api: 'getAppAuth',
+          api: 'sourseMapApi',
           content: {
-            type: 'getPoint',
+            type: 'display',
             orginPoint: teacherAttInfo.value.addressLongitudeLatitude,
             myPoint,
             limitDistance: attendanceScope.value

+ 2 - 2
src/school/school-detail/eidt-school.tsx

@@ -120,8 +120,8 @@ export default defineComponent({
       try {
         await postMessage(
           {
-            api: 'getAppAuth',
-            content: { type: 'setPoint', orginPoint: forms.addressLongitudeLatitude }
+            api: 'sourseMapApi',
+            content: { type: 'modify', orginPoint: forms.addressLongitudeLatitude }
           },
           (data: any) => {
             forms.addressLongitudeLatitude = data.content.nowPoint