From dac4ce9c559a5ddd3d4666c9ac93d25dde97cacc Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期四, 01 四月 2021 14:07:23 +0800
Subject: [PATCH] 修改函数名大小写

---
 src/components/LayerController/logic/WasteGas.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/components/LayerController/logic/WasteGas.js b/src/components/LayerController/logic/WasteGas.js
index 944cfb7..7a9d673 100644
--- a/src/components/LayerController/logic/WasteGas.js
+++ b/src/components/LayerController/logic/WasteGas.js
@@ -19,7 +19,7 @@
    */
   this.init = async (layer, L) => {
     this.animalService = new AnimalService({ L: L, layer: layer })
-    const res = await mapApi.GetWasteGas()
+    const res = await mapApi.getWasteGas()
     const data = res.Result.DataInfo || {}
     console.log(data)
     for (let i = 0; i < data.length; i++) {
@@ -51,13 +51,13 @@
   this.clickListener = async (e) => {
     // console.log(e)
     this.animalService.pulseEffect(e.latlng)
-    const dataValue = {
-      StoragePlaceId: e.layer.options.test.StoragePlaceId
-    }
-    const result = await mapApi.GetWasteGas(dataValue)
+    // const dataValue = {
+    //   StoragePlaceId: e.layer.options.test.StoragePlaceId
+    // }
+    // const result = await mapApi.getWasteGas(dataValue)
     const PublicBounced = window.Vue.extend(publicBounced)
     const instance = new PublicBounced()
-    instance.setData(result)
+    instance.setData(e.layer.options.test)
     instance.$mount()
     document.body.appendChild(instance.$el)
   }

--
Gitblit v1.8.0