liuyg
2022-03-05 722dbde665a8e335bccaa9d984cd02eb22333e54
src/App.vue
@@ -1,5 +1,5 @@
<template>
  <div id="app">
  <div id="app" :class="{ cantdoit: cantdoits }">
    <router-view></router-view>
  </div>
</template>
@@ -12,6 +12,7 @@
    return {
      //   consoles: 1,
      //   consoles1: 1,
      cantdoits: false,
    };
  },
  mounted() {
@@ -61,6 +62,7 @@
    //     JSON.stringify(d)
    // );
    if (this._isMobile()) {
      this.cantdoits = true;
      // 手机端
      this.$router.replace("/mobileLayout");
@@ -156,4 +158,12 @@
  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>