Riku
2025-03-02 de6fd089b37613808e5a3bef38ecc0761f7456e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { ref } from 'vue';
import { defineStore } from 'pinia';
 
export const useMapAnimationStore = defineStore('mapAnimation', () => {
  // // 动画状态,0:停止;1:播放;2:暂停
  const status = ref(0);
 
  function start() {
    status.value = 1;
  }
  function pause() {
    status.value = 2;
  }
  function stop() {
    status.value = 0;
  }
 
  return { status, start, pause, stop };
});