智慧园区前端大屏
linwe
2024-11-19 2676f45f33b9dedb80d0417e5af603df41216f0b
src/store/map.js
@@ -1,10 +1,21 @@
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-28 18:24:16
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-19 18:03:04
 * @FilePath: \bigScreen\src\store\map.js
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
 */
// src/stores/useUserStore.js
import { defineStore } from 'pinia'
export const useMap = defineStore('map', {
  // 存储状态的地方,相当于 Vuex 的 state
  state: () => ({
    loadMap: false
    loadMap: false,
    pointHeight: 64
  }),
  // 相当于 Vuex 的 getters,用于计算状态