mo пре 2 година
родитељ
комит
55b833e408

+ 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