guoxiaohuan %!s(int64=4) %!d(string=hai) anos
pai
achega
8179aabe2f
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      src/components/floorMap/index.vue

+ 8 - 2
src/components/floorMap/index.vue

@@ -200,17 +200,23 @@ export default {
     },
     watch: {},
     mounted() {
+        console.log(window.screen.height)
         if (window.screen.height == '768') {
             this.canvasWidth = this.$refs.graphy.offsetWidth
             this.canvasHeight = this.$refs.graphy.offsetHeight - 100
+            console.log(this.canvasWidth)
+            console.log(this.canvasHeight)
         } else {
             this.canvasWidth = this.$refs.graphy.offsetWidth
-            this.canvasHeight = this.$refs.graphy.offsetHeight
+            this.canvasHeight = 900 + 'px'
+            console.log(this.canvasWidth)
+            console.log(this.canvasHeight)
         }
     },
     created() {
         this.urlMsg = {
-            categoryId: this.$cookie.get('categoryId') || 'LCGN',
+            // categoryId: this.$cookie.get('categoryId') || 'LCGN',
+            categoryId: 'XFXT',
             ProjectID: this.plazaId,
             BuildingID: '1',
             FloorID: this.$cookie.get('floorMapId') || 'f1',