智慧园区前端大屏
shuishen
2025-08-06 ae5f9eb13c2b24fddda49288f26274d99b7a085a
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: 2025-02-12 18:21:51
 * @LastEditTime: 2025-07-31 20:29:37
 * @FilePath: \bigScreen\src\store\map.js
 * @Description: 
 * 
@@ -19,6 +19,12 @@
    editPoint: false,
    startCustomWx: false,
    showPreLevel: false,
        rimPosition: {
            lng: '',
            lat: '',
            alt: ''
        }
  }),
  // 相当于 Vuex 的 getters,用于计算状态
@@ -43,5 +49,20 @@
    setShowPreLevel (flag) {
      this.showPreLevel = flag
    },
        setRimPosition (rimPosition) {
            this.rimPosition = rimPosition
        }
    },
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'rimPosition',
                paths: ['rimPosition'],
                storage: localStorage,
            }
        ]
  }
})