This commit is contained in:
zmj 2023-12-23 15:47:34 +08:00
parent 0f676eec08
commit 303addb3e6
3 changed files with 7 additions and 7 deletions

BIN
node_modules.zip Normal file

Binary file not shown.

View File

@ -12,11 +12,11 @@
</template> </template>
<script setup> <script setup>
import { defineProps, defineEmits, onMounted, reactive,watch } from "vue" import { defineProps, defineEmits, onMounted, reactive, watch } from "vue"
import { useRouter,useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
import { areaObj } from '@/store/index.js' import { areaObj } from '@/store/index.js'
import axios from "axios" import axios from "axios"
const route=useRoute const route = useRoute
let areaStore = areaObj() let areaStore = areaObj()
@ -52,7 +52,7 @@ const choseAreaFn = () => {
}) })
props.choseArea = false props.choseArea = false
emit('offAreaList', "龙马潭区") emit('offAreaList', "泸县")
router.replace('/') router.replace('/')

View File

@ -217,9 +217,9 @@ const updateTime = () => {
} }
onMounted(() => { onMounted(() => {
setInterval(updateTime, 1000) setInterval(updateTime, 1000)
MapLoader().then(res => { // MapLoader().then(res => {
area.value = res.addressComponent.district // area.value = res.addressComponent.district
}) // })
}) })