perf: standard code format

This commit is contained in:
xiaoxian521
2022-05-14 09:59:02 +08:00
parent 2214ce7911
commit 1cf82eb7a4
29 changed files with 85 additions and 82 deletions

View File

@@ -1,12 +1,11 @@
import { App } from "vue";
import amap from "./src/Amap.vue";
/** 高德地图组件 */
export const Amap = Object.assign(amap, {
install(app: App) {
app.component(amap.name, amap);
}
});
export default {
Amap
};
export default Amap;

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import AMapLoader from "@amap/amap-jsapi-loader";
import { reactive, getCurrentInstance, onBeforeMount, onUnmounted } from "vue";
import { mapJson } from "/@/api/mock";
import { deviceDetection } from "/@/utils/deviceDetection";
import AMapLoader from "@amap/amap-jsapi-loader";
import { mapJson } from "/@/api/mock";
import car from "/@/assets/car.png";
export interface MapConfigureInter {