guoxiaohuan 4 years ago
parent
commit
d6e5abefa7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/floorList.vue

+ 2 - 2
src/components/floorList.vue

@@ -155,10 +155,10 @@ export default {
                 // 如果 changeDataFlag为true(不是在 分布图弹窗组件中的 楼层组件),设置cookie,vuex
                 if (this.changeDataFlag) {
                     this.$cookie.set('floorNow', currentFloor.code || '', 3)
-                    this.$cookie.set('floorMapId', currentFloor.gcname, 3)
+                    this.$cookie.set('floorMapId', currentFloor.gname, 3)
                     this.$cookie.set('currentFloorId', currentFloor.seq, 3)
                     this.floorId = this.$cookie.get('floorNow') || currentFloor.code
-                    this.floorMapIdName = this.$cookie.get('floorMapId') || currentFloor.gcname
+                    this.floorMapIdName = this.$cookie.get('floorMapId') || currentFloor.gname
                     store.commit('SETCURRENTFLOOR', currentFloor)
                 }
                 this.$emit('emitFloor', currentFloor)