Newer
Older
urbanLifeline_YanAn / src / store / modules / dialogTabs.js
@zhangzhihui zhangzhihui on 22 Oct 654 bytes 燃气弹窗
const dialogTabsStore = defineStore('dialogTabs', {
  state: () => {
    return {
      // 燃气值
      RQvalue: {},
      // 全景点位
      pointLocation: [],
    };
  },
  actions: {
    // 添加全景点位
    addPosition(position) {
      this.pointLocation = position;
    },
    // 删除tab全景点位
    deleteDialogTabs() {
      this.pointLocation = [];
    },
    // 添加全景点位
    addRQ(val) {
      this.RQvalue = val;
    },
    // 删除tab全景点位
    deleteRQ() {
      this.RQvalue = {};
    },
    clear() {
      this.pointLocation = [];
      this.RQvalue = {};
    },
  },
});
export default dialogTabsStore;