src/components/dispatch/index.vue
@@ -107,7 +107,7 @@ </div> </el-form> <div class="map"> <!-- <MyMap></MyMap> --> <MyMap style="width: 600px; height: 400px"></MyMap> </div> <div class="footer"> <el-button type="primary" @click="handleDispatch">确定</el-button> @@ -116,7 +116,8 @@ </div> </template> <script> import MyMap from "@/components/map"; // import MyMap from "@/components/map"; import MyMap from "@/components/map/leafletMap.vue"; export default { components: { MyMap, @@ -407,4 +408,4 @@ padding: 10px 20px; } } </style> </style>