智慧园区前端大屏
shuishen
2025-01-15 45fc6f48d0c35584eb4aa98d57c4b780095e02e3
store增加编辑
1 files modified
11 ■■■■ changed files
src/store/map.js 11 ●●●● patch | view | raw | blame | history
src/store/map.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-28 18:24:16
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-19 18:03:04
 * @LastEditTime: 2025-01-15 14:35:23
 * @FilePath: \bigScreen\src\store\map.js
 * @Description: 
 * 
@@ -15,7 +15,8 @@
  // 存储状态的地方,相当于 Vuex 的 state
  state: () => ({
    loadMap: false,
    pointHeight: 64
    pointHeight: 64,
    editPoint: false,
  }),
  // 相当于 Vuex 的 getters,用于计算状态
@@ -28,5 +29,9 @@
    setLoadMap (flag) {
      this.loadMap = flag
    },
    setEditPoint (flag) {
      this.editPoint = flag
    }
  }
})
})