|
@@ -63,7 +63,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { computed, ref, shallowRef, watch, watchEffect } from "vue";
|
|
|
+import { computed, nextTick, ref, shallowRef, watch, watchEffect } from "vue";
|
|
|
import {
|
|
|
getCurrentLatlng,
|
|
|
LatLng,
|
|
@@ -145,6 +145,8 @@ const initLatlng = async () => {
|
|
|
keyword.value = `${latlng.lat},${latlng.lng}`;
|
|
|
searchHandler();
|
|
|
}
|
|
|
+ await nextTick();
|
|
|
+ searchType.value = "name";
|
|
|
};
|
|
|
initLatlng();
|
|
|
|