| | |
| | | <template> |
| | | <div id="app"> |
| | | <div id="app" :class="{ cantdoit: cantdoits }"> |
| | | <router-view></router-view> |
| | | </div> |
| | | </template> |
| | |
| | | return { |
| | | // consoles: 1, |
| | | // consoles1: 1, |
| | | cantdoits: false, |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | // JSON.stringify(d) |
| | | // ); |
| | | if (this._isMobile()) { |
| | | this.cantdoits = true; |
| | | // 手机端 |
| | | this.$router.replace("/mobileLayout"); |
| | | |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .cantdoit * { |
| | | -webkit-touch-callout: none !important; /*系统默认菜单被禁用*/ |
| | | -webkit-user-select: none !important; /*webkit浏览器*/ |
| | | -khtml-user-select: none !important; /*早期浏览器*/ |
| | | -moz-user-select: none !important; /*火狐*/ |
| | | -ms-user-select: none !important; /*IE10*/ |
| | | user-select: none !important; |
| | | } |
| | | </style> |