소스 검색

feat: 铜仁地图存储为静态文件

wll8 5 달 전
부모
커밋
9c0608b4cd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/page1/index.vue
  2. 0 0
      src/views/page1/mapOfTongren.json

+ 2 - 2
src/views/page1/index.vue

@@ -71,6 +71,7 @@
 </template>
 
 <script>
+import mapOfTongren from './mapOfTongren.json'
 import bgBox from '@/components/bgBox/index.vue'
 import { screenSize } from '@/assets/js/utils'
 import cake from '@/components/Customize/cake'
@@ -291,8 +292,7 @@ export default {
       })
     },
     async getJSON() {
-      console.log(`获取JSOn`)
-      this.getJson = await this.$http.get(`/api/mapOfTongren`)
+      this.getJson = mapOfTongren
       this.hasGetJson = true
     },
   },

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/views/page1/mapOfTongren.json


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.