const dialogTabsStore = defineStore('dialogTabs', { state: () => { return { // 燃气值 RQvalue: {}, // 全景点位 pointLocation: [], // 类型模块 moduleType: '', // 地图排水或燃气类型 mapType: '', mapTypeTitle:'' }; }, actions: { // 添加全景点位 addPosition(position) { this.pointLocation = position; }, // 删除tab全景点位 deleteDialogTabs() { this.pointLocation = []; }, // 添加全景点位 addRQ(val) { this.RQvalue = val; }, // 删除tab全景点位 deleteRQ() { this.RQvalue = {}; }, setModuleType(type) { this.moduleType = type; }, setMapType(type,title) { this.mapType = type; this.mapTypeTitle = title; }, clear() { this.pointLocation = []; this.RQvalue = {}; this.mapType = ''; this.mapTypeTitle = ''; }, }, }); export default dialogTabsStore;