Forráskód Böngészése

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

wll8 5 hónapja
szülő
commit
9c0608b4cd
2 módosított fájl, 2 hozzáadás és 2 törlés
  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
     },
   },

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
src/views/page1/mapOfTongren.json


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott