Pārlūkot izejas kodu

Merge branch 'dev' of http://gogs.gzzzyd.com/xiaowenhua/vueDataV into dev

Cooklalala 5 mēneši atpakaļ
vecāks
revīzija
7c7097da78
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/views/page1/index.vue
  2. 0 0
      src/views/page1/mapOfTongren.json

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

@@ -72,6 +72,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'
@@ -301,8 +302,7 @@ export default {
       })
     },
     async getJSON() {
-      console.log(`获取JSOn`)
-      this.getJson = await this.$http.get(`/api/mapOfTongren`)
+      this.getJson = mapOfTongren
       this.hasGetJson = true
     },
   },

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
src/views/page1/mapOfTongren.json


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels