coordinate.js 291 B

12345678910111213
  1. import { defineStore } from 'pinia'
  2. import { ref } from 'vue'
  3. export const useCoordinateStore = defineStore('screen', () => {
  4. const place = ref({ lat: 28.7052848, lng: 113.5759597 })
  5. const changePlace = (val) => {
  6. place.value = val
  7. }
  8. return {
  9. place,
  10. changePlace,
  11. }
  12. })