소스 검색

修改默认楼层

shaun-sheep 4 년 전
부모
커밋
63856face6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/floorList.vue

+ 2 - 2
src/components/floorList.vue

@@ -37,13 +37,13 @@ export default {
         }
     },
     mounted() {
-        this.tabFloor('1F')
+        this.tabFloor()
     },
     computed: {
         ...mapGetters(['floorsArr'])
     },
     methods: {
-        tabFloor(item) {
+        tabFloor(item = '1F') {
             this.showT = true
             this.showB = true
             this.$cookie.set('floorNow', item, 3)